Skip to content

Commit

Permalink
refresh encounter list after deleting encounter
Browse files Browse the repository at this point in the history
  • Loading branch information
kajambiya committed Jun 20, 2024
1 parent 943f0b2 commit 0d6f256
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ export const EncounterList: React.FC<EncounterListProps> = ({
const abortController = new AbortController();
deleteEncounter(encounterUuid, abortController)
.then(() => {
mutate(
(key) =>
typeof key === "string" && key.startsWith("/ws/rest/v1/encounter"),
undefined,
{ revalidate: true }
);
onFormSave();
showSnackbar({
isLowContrast: true,
title: t('encounterDeleted', 'Encounter deleted'),
Expand Down

0 comments on commit 0d6f256

Please sign in to comment.