Skip to content

Commit

Permalink
fix(table): format if value or value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Always-prog committed May 10, 2023
1 parent 73ec42a commit 1741041
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export default function TableChart<D extends DataRecord = DataRecord>(
.filter(formatter => formatter.column === column.key)
.forEach(formatter => {
const formatterResult =
value !== undefined
value || value === 0
? formatter.getColorFromValue(value as number)
: false;
if (formatterResult) {
Expand Down

0 comments on commit 1741041

Please sign in to comment.