Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): show/hide columns broken after introducing resizable columns

Marc Klingen78ca9757ffb1
diff --git a/web/src/components/table/data-table.tsx b/web/src/components/table/data-table.tsx
index 41b20ee11a..5009126da1 100644
--- a/web/src/components/table/data-table.tsx
+++ b/web/src/components/table/data-table.tsx
@@ -126,7 +126,13 @@ export function DataTable<TData extends object, TValue>({
}
return colSizes;
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [table.getState().columnSizingInfo, table.getState().columnSizing]);
+ }, [
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ table.getState().columnSizingInfo,
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ table.getState().columnSizing,
+ columnVisibility,
+ ]);
return (
<>