mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
Show original field names in biz-state workbook headers.
Stop using Chinese display_name for metric sheet columns so headers match the raw field keys. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ee375b144d
commit
b6eab3ed8f
3 changed files with 24 additions and 2 deletions
|
|
@ -422,7 +422,8 @@ export function BizStatePage() {
|
|||
setSheetTotal(Number(res.total || 0));
|
||||
const cols = (res.columns || []).map((c) => ({
|
||||
key: c.key,
|
||||
header: c.header || c.key,
|
||||
// Always show original field key; never localized display_name.
|
||||
header: c.key || c.header || "",
|
||||
}));
|
||||
setSheetColumns(cols.length ? cols : columnsFromRows(res.items || []));
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue