Skip to content

Commit

Permalink
fix: filtercheckbox filterchoices properly renders number 0
Browse files Browse the repository at this point in the history
  • Loading branch information
manny-m committed Sep 17, 2021
1 parent 4ad4e63 commit 0b40d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataTable/filters/CheckboxFilter.jsx
Expand Up @@ -33,7 +33,7 @@ function CheckboxFilter({
id={headerBasedId}
checked={checkedBoxes.includes(value)}
onChange={() => { changeCheckbox(value); }}
label={<>{name} {number && <Badge variant="light">{number}</Badge>}</>}
label={<>{name} {number !== undefined && <Badge variant="light">{number}</Badge>}</>}
/>
))}
</Form.Group>
Expand Down

0 comments on commit 0b40d3f

Please sign in to comment.