From 79a308e719827ee66374d7020f4c7c17f7a3dce7 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 24 Nov 2021 00:17:49 -0800 Subject: [PATCH] Fix column state in table - Remove redundancy --- src/components/viewtypes/ListViewType.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/viewtypes/ListViewType.tsx b/src/components/viewtypes/ListViewType.tsx index ad60f45..fe326f0 100644 --- a/src/components/viewtypes/ListViewType.tsx +++ b/src/components/viewtypes/ListViewType.tsx @@ -45,7 +45,6 @@ const ListViewType = ( const [height, setHeight] = useState(0); const [show, setShow] = useState(false); // const [scrollY, setScrollY] = useState(0); - const [columns] = useState(tableColumns); const { getHeight } = DOMHelper; const wrapperRef = useRef(null); const multiSelect = useAppSelector((state: any) => state.multiSelect); @@ -320,7 +319,7 @@ const ListViewType = ( virtualized rowHeight={rowHeight} fontSize={fontSize} - columns={columns} + columns={tableColumns} handleRowClick={handleRowClick} handleRowDoubleClick={handleRowDoubleClick} playQueue={playQueue}