Skip to content

Commit

Permalink
ui: fix undefined table stats
Browse files Browse the repository at this point in the history
Previously, if no value was being passed as totalCount,
the table stats were showing an "undefined value". This
commit as a default value as 0 for the total.

Fixes #89869

Release note (bug fix): show correct value on table
stats on UI, when there is no values to show.
  • Loading branch information
maryliag committed Oct 12, 2022
1 parent b955fd6 commit d4bea33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface TableStatistics {
// This component has also a clear filter option.
export const TableStatistics: React.FC<TableStatistics> = ({
pagination,
totalCount,
totalCount = 0,
search,
arrayItemName,
onClearFilters,
Expand Down

0 comments on commit d4bea33

Please sign in to comment.