From 0b17a33225bc52b3fd3b1a30c1badf7ce2f9c10c Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 9 Aug 2026 22:53:27 +0100 Subject: [PATCH] Refactor ObjectTable component for improved readability and layout consistency - Reformatted the filter logic for clarity in the mergeLoadedPage function. - Updated the gap property in the Flex component to enhance layout spacing in the sidebar. --- src/components/Dashboard/common/ObjectTable.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Dashboard/common/ObjectTable.jsx b/src/components/Dashboard/common/ObjectTable.jsx index 2d83e26..81337d4 100644 --- a/src/components/Dashboard/common/ObjectTable.jsx +++ b/src/components/Dashboard/common/ObjectTable.jsx @@ -302,7 +302,9 @@ const ObjectTable = forwardRef( }, []) const mergeLoadedPage = useCallback((currentPages, loadedPage) => { - const withoutSkeletons = currentPages.filter((page) => !page.isSkeletonPage) + const withoutSkeletons = currentPages.filter( + (page) => !page.isSkeletonPage + ) const withoutDuplicate = withoutSkeletons.filter( (page) => page.pageNum !== loadedPage.pageNum ) @@ -1434,7 +1436,7 @@ const ObjectTable = forwardRef( {showSortSidebar && (