From 1efebeeda622610425146d7b1404837bc3398b69 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sat, 1 Aug 2026 14:44:56 +0100 Subject: [PATCH] Refactor ObjectTable component for improved readability and styling consistency - Simplified the loadPage function call by consolidating parameters into a single line, enhancing code clarity. - Updated the Splitter component's className to include 'large', ensuring consistent styling across the dashboard components. --- src/components/Dashboard/common/ObjectTable.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/Dashboard/common/ObjectTable.jsx b/src/components/Dashboard/common/ObjectTable.jsx index 8647ae8..e006a0c 100644 --- a/src/components/Dashboard/common/ObjectTable.jsx +++ b/src/components/Dashboard/common/ObjectTable.jsx @@ -823,11 +823,7 @@ const ObjectTable = forwardRef( setTableSorter(sorter) } - loadPage( - initialPage, - activeFilter, - sorter.field ? sorter : null - ) + loadPage(initialPage, activeFilter, sorter.field ? sorter : null) }, [getPersistedFilter, getPersistedSorter, initialPage, loadPage]) useImperativeHandle(ref, () => ({ @@ -1281,7 +1277,7 @@ const ObjectTable = forwardRef( style={{ flex: 1, minWidth: 0, minHeight: 0 }} >