Skip to content

Commit

Permalink
Merge pull request #424 from AkshataKatwal16/piolet-changes
Browse files Browse the repository at this point in the history
master data and field update changes
  • Loading branch information
itsvick authored Dec 13, 2024
2 parents 50d495e + c6adea3 commit 2bcb1a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/components/AddBlockModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ export const AddBlockModal: React.FC<AddBlockModalProps> = ({
filters: {
states: stateCode,
type: CohortTypes.DISTRICT,
status:["active"]

},
};

Expand Down
4 changes: 1 addition & 3 deletions src/components/CommonUserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions src/pages/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 2bcb1a8

Please sign in to comment.