feature(DataTable): render nullish labels as 'Unknown'

This commit is contained in:
Alexander Klein 2021-02-19 09:55:11 +01:00
parent 30ebf7b266
commit fb85d576a2

View File

@ -27,7 +27,7 @@ export default function DataTable({
return (
<AnimatedRow
key={label}
label={renderLabel ? renderLabel(row) : label}
label={renderLabel ? renderLabel(row) : label ?? 'Unknown'}
value={value}
percent={percent}
animate={animate && !virtualize}