Skip to content

Commit

Permalink
minnor fixe 00
Browse files Browse the repository at this point in the history
  • Loading branch information
adityadeshlahre committed Jun 13, 2024
1 parent 3d0be26 commit 2a03e12
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
() => {
Expand Down Expand Up @@ -252,6 +252,8 @@ function OrganizationManagament() {
useEffect(() => {
if (isSearching && panelSearchTerm === "") {
setIsSearching(false);
setPaging(1);
setStartingRecNo(1);
}
}, [isSearching, panelSearchTerm]);

Expand Down Expand Up @@ -289,6 +291,8 @@ function OrganizationManagament() {

const handlePanelSearchChange = (event) => {
setIsSearching(true);
setPaging(1);
setStartingRecNo(1);
const query = event.target.value;
setPanelSearchTerm(query);
setSelectedRowIds([]);
Expand Down Expand Up @@ -489,7 +493,6 @@ function OrganizationManagament() {
selectedRowIds.includes(row.id),
).length === pageSize
}
// checked={isEveryRowIsChecked}
indeterminate={
selectedRowIds.length > 0 &&
selectedRowIds.length <
Expand All @@ -500,7 +503,6 @@ function OrganizationManagament() {
)
.filter((row) => !row.disabled).length
}
// indeterminate={rowsIsPartiallyChecked}
onSelect={() => {
setDeactivateButton(false);
const currentPageIds =
Expand Down

0 comments on commit 2a03e12

Please sign in to comment.