From 097ecde03140fea57e6970cfae8d343f7bac8953 Mon Sep 17 00:00:00 2001 From: alexd-bes <129009580+alexd-bes@users.noreply.github.com> Date: Mon, 27 May 2024 09:45:55 +1200 Subject: [PATCH] fix(LESMIS): Fix infinite reload on table on LESMIS admin panel --- .../src/table/DataFetchingTable/DataFetchingTable.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admin-panel/src/table/DataFetchingTable/DataFetchingTable.jsx b/packages/admin-panel/src/table/DataFetchingTable/DataFetchingTable.jsx index 8def191bdc..e2193ba01f 100644 --- a/packages/admin-panel/src/table/DataFetchingTable/DataFetchingTable.jsx +++ b/packages/admin-panel/src/table/DataFetchingTable/DataFetchingTable.jsx @@ -183,7 +183,7 @@ const DataFetchingTableComponent = ({ } gotoPage(0); setSortBy(defaultSorting ?? []); // reset sorting when table is re-initialised - }, [endpoint, baseFilter]); + }, [endpoint, JSON.stringify(baseFilter)]); const onChangeFilters = newFilters => { onFilteredChange(newFilters);