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:
oliver 2026-09-20 11:25:06 +08:00
parent ee375b144d
commit b6eab3ed8f
3 changed files with 24 additions and 2 deletions

View file

@ -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) {