Skip to content

Commit

Permalink
Add extra undefined check for table filters
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Aug 27, 2024
1 parent 820a352 commit f963f6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/src/tables/FilterSelectDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ function FilterAddGroup({
availableFilters: TableFilter[];
}) {
const filterOptions: TableFilterChoice[] = useMemo(() => {
if (!tableState?.activeFilters || tableState.activeFilters.length == 0) {
return [];
}
let activeFilterNames =
tableState.activeFilters?.map((flt) => flt.name) ?? [];

Expand Down

0 comments on commit f963f6c

Please sign in to comment.