Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 14ea34c

Browse files
committed
fix: default table formatter to display falsy values.
1 parent f6b0595 commit 14ea34c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/styled/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function table(data: any[], inputOptions: Partial<TableOptions> =
4848
const options: TableOptions = {
4949
...inputOptions,
5050
columns: (inputOptions.columns || []).map(c => ({
51-
format: (value: any) => (value ? value.toString() : ''),
51+
format: (value: any) => (value != null ? value.toString() : ''),
5252
width: 0,
5353
label() {
5454
return this.key!.toString()

0 commit comments

Comments
 (0)