diff --git a/epictrack-web/src/components/shared/MasterTrackTable/index.tsx b/epictrack-web/src/components/shared/MasterTrackTable/index.tsx index 89a6032af..61bf7ebdc 100644 --- a/epictrack-web/src/components/shared/MasterTrackTable/index.tsx +++ b/epictrack-web/src/components/shared/MasterTrackTable/index.tsx @@ -88,7 +88,6 @@ const MasterTrackTable = ({ }: MaterialReactTableProps) => { const { initialState, state, icons, ...otherProps } = rest; const [otherPropsData, setOtherPropsData] = useState(otherProps); - useEffect(() => { setOtherPropsData(otherProps); }, [columns, data]); @@ -97,6 +96,7 @@ const MasterTrackTable = ({ data: data, globalFilterFn: "contains", enableHiding: false, + layoutMode: "grid", enableGlobalFilter: false, enableColumnResizing: true, enableStickyHeader: true,