Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front end data type display exception #6888

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
6 changes: 5 additions & 1 deletion viz-lib/src/visualizations/table/columns/number.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ export default function initNumberColumn(column: any) {
const format = createNumberFormatter(column.numberFormat);

function prepareData(row: any) {
let number = row[column.name];
mirkan1 marked this conversation as resolved.
Show resolved Hide resolved
if (Number.isSafeInteger(number)) {
number = format(number);
}
return {
text: format(row[column.name]),
mirkan1 marked this conversation as resolved.
Show resolved Hide resolved
text: number,
};
}

Expand Down
Loading