diff --git a/agenta-web/src/components/ServerTable/index.tsx b/agenta-web/src/components/ServerTable/index.tsx index b7a926121b..628472f71a 100644 --- a/agenta-web/src/components/ServerTable/index.tsx +++ b/agenta-web/src/components/ServerTable/index.tsx @@ -74,11 +74,11 @@ const ServerTable = ( const setHiddenCols = (cols: string[]) => _setHiddenCols(cols.join(",")) const total = useRef(0) - // useDeepCompareEffect(() => { - // setColumns( - // (props.columns || []).map((item) => ({...item, width: item.width})) as DataCol[], - // ) - // }, [props.columns]) + useDeepCompareEffect(() => { + setColumns( + (props.columns || []).map((item) => ({...item, width: item.width})) as DataCol[], + ) + }, [props.columns]) useEffect(() => { setLoading(true)