From 2a03e12d5dd63f423b3dfdc270305539d40bb083 Mon Sep 17 00:00:00 2001 From: "Aditya @ArchLinux" <132184385+adityadeshlahre@users.noreply.github.com> Date: Fri, 14 Jun 2024 03:46:54 +0530 Subject: [PATCH] minnor fixe 00 --- .../OrganizationManagement/OrganizationManagement.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/admin/OrganizationManagement/OrganizationManagement.js b/frontend/src/components/admin/OrganizationManagement/OrganizationManagement.js index 87a4ef8d22..fbb08e39c1 100644 --- a/frontend/src/components/admin/OrganizationManagement/OrganizationManagement.js +++ b/frontend/src/components/admin/OrganizationManagement/OrganizationManagement.js @@ -83,7 +83,7 @@ function OrganizationManagament() { function deleteDeactivateOrganizationManagament(event) { event.preventDefault(); setLoading(true); - postToOpenElisServer( + postToOpenElisServerJsonResponse( `/rest/DeleteOrganization?ID=${selectedRowIds.join(",")}&startingRecNo=1`, JSON.stringify(selectedRowIdsPost), () => { @@ -252,6 +252,8 @@ function OrganizationManagament() { useEffect(() => { if (isSearching && panelSearchTerm === "") { setIsSearching(false); + setPaging(1); + setStartingRecNo(1); } }, [isSearching, panelSearchTerm]); @@ -289,6 +291,8 @@ function OrganizationManagament() { const handlePanelSearchChange = (event) => { setIsSearching(true); + setPaging(1); + setStartingRecNo(1); const query = event.target.value; setPanelSearchTerm(query); setSelectedRowIds([]); @@ -489,7 +493,6 @@ function OrganizationManagament() { selectedRowIds.includes(row.id), ).length === pageSize } - // checked={isEveryRowIsChecked} indeterminate={ selectedRowIds.length > 0 && selectedRowIds.length < @@ -500,7 +503,6 @@ function OrganizationManagament() { ) .filter((row) => !row.disabled).length } - // indeterminate={rowsIsPartiallyChecked} onSelect={() => { setDeactivateButton(false); const currentPageIds =