diff --git a/src/components/AddBlockModal.tsx b/src/components/AddBlockModal.tsx index c00c91f..8f21dfd 100644 --- a/src/components/AddBlockModal.tsx +++ b/src/components/AddBlockModal.tsx @@ -133,6 +133,8 @@ export const AddBlockModal: React.FC = ({ filters: { states: stateCode, type: CohortTypes.DISTRICT, + status:["active"] + }, }; diff --git a/src/components/CommonUserModal.tsx b/src/components/CommonUserModal.tsx index 224340e..8dee684 100644 --- a/src/components/CommonUserModal.tsx +++ b/src/components/CommonUserModal.tsx @@ -225,9 +225,7 @@ console.log("userType",userType, FormContextType.CONTENT_CREATOR) if (userType === FormContextType.TEACHER) { const newResponse = { ...response, - fields: response?.fields?.filter( - (field: any) => field.name !== "no_of_clusters" - ), + fields: response?.fields }; const { schema, uiSchema, formValues } = GenerateSchemaAndUiSchema( newResponse, diff --git a/src/pages/block.tsx b/src/pages/block.tsx index e57e920..9576e2f 100644 --- a/src/pages/block.tsx +++ b/src/pages/block.tsx @@ -689,6 +689,8 @@ const Block: React.FC = () => { ) ); showToastMessage(t("COMMON.BLOCK_DELETED_SUCCESS"), "success"); + filteredCohortOptionData(); + fetchBlocks(); const windowUrl = window.location.pathname; const cleanedUrl = windowUrl.replace(/^\//, ''); const env = cleanedUrl.split("/")[0];