Skip to content

Commit

Permalink
fix: testing for react minified
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade committed Nov 26, 2024
1 parent d4b526a commit 3593255
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/organization/OrganizationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const OrganizationsList = () => {
};

const getAllOrganizations = async () => {
try {
setLoading(true);
const response = await getOrganizations(
currentPage.pageNumber,
Expand All @@ -78,10 +79,14 @@ const OrganizationsList = () => {
totalCount: totalCount,
});
} else {
setError(response as string);
}
setLoading(false);
};
setError(data?.message || 'Unable to fetch organizations');
}
} catch (err) {
setError('An error occurred while fetching organizations');
} finally {
setLoading(false);
}
};

useEffect(() => {
let getData: NodeJS.Timeout;
Expand Down Expand Up @@ -237,6 +242,7 @@ const OrganizationsList = () => {
}

console.log("test3333");
console.log({ message, error, organizationsList, currentPage });

return (

Expand Down

0 comments on commit 3593255

Please sign in to comment.