Skip to content

Commit

Permalink
Fix render death spiral when trying to add table chooser icon repeate…
Browse files Browse the repository at this point in the history
…dly.
  • Loading branch information
MichaelBurgess committed Jan 14, 2025
1 parent 85a9de0 commit 97b42b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/dashboard/src/components/dashboards/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,8 @@ const TableViewVirtualizedRows = (props: TableProps) => {
(c) => c.key === "table-select-columns",
);
const tableFilter = customControls.find((c) => c.key === "table-filter");
if (tableColumnChooser && tableFilter) {
// All tables have a column chooser, but only non-detection tables have a filter
if (tableColumnChooser && (props.isDetectionTable || tableFilter)) {
return;
}
setCustomControls([
Expand Down

0 comments on commit 97b42b9

Please sign in to comment.