mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Merge pull request #2469 from PublicI/fix/null-number-format
Display nulls and empty values as blank in table numeric fields
This commit is contained in:
@@ -47,7 +47,7 @@ function createBooleanFormatter(values) {
|
||||
function createNumberFormatter(format) {
|
||||
if (_.isString(format) && (format !== '')) {
|
||||
const n = numeral(0); // cache `numeral` instance
|
||||
return value => n.set(value).format(format);
|
||||
return value => (value === null || value === '' ? '' : n.set(value).format(format));
|
||||
}
|
||||
return value => value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user