From 97b42b912d7648a78608a7f9c1975ebe53fbbcc6 Mon Sep 17 00:00:00 2001 From: Mike Burgess Date: Tue, 14 Jan 2025 21:17:33 +0000 Subject: [PATCH] Fix render death spiral when trying to add table chooser icon repeatedly. --- ui/dashboard/src/components/dashboards/Table/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/dashboard/src/components/dashboards/Table/index.tsx b/ui/dashboard/src/components/dashboards/Table/index.tsx index b1128810..e072faca 100644 --- a/ui/dashboard/src/components/dashboards/Table/index.tsx +++ b/ui/dashboard/src/components/dashboards/Table/index.tsx @@ -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([