From 6b7a83e12f19a5ea1d700b727ebd5c11de0d5d92 Mon Sep 17 00:00:00 2001 From: Akshata Katwal Date: Wed, 16 Oct 2024 00:50:04 +0530 Subject: [PATCH] Issue feat: fix empty state value on center page --- src/pages/centers.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/centers.tsx b/src/pages/centers.tsx index 852e6a7d..fd90f08a 100644 --- a/src/pages/centers.tsx +++ b/src/pages/centers.tsx @@ -381,7 +381,10 @@ const response= await fetchCohortMemberList(data); }; useEffect(() => { - fetchUserList(); + if ((selectedBlockCode !== "") || (selectedDistrictCode !== "" && selectedBlockCode === "") ){ + fetchUserList(); + } + // fetchUserList(); getFormData(); }, [pageOffset, pageLimit, sortBy, filters, filters.states, filters.status, createCenterStatus]);