Skip to content

Commit

Permalink
Issue feat:Resolve reload issue after deletion of block
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshataKatwal16 committed Dec 12, 2024
1 parent e5a64a6 commit 6c462e3
Showing 1 changed file with 2 additions and 0 deletions.
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 6c462e3

Please sign in to comment.