diff --git a/ui/src/cohortContext.ts b/ui/src/cohortContext.ts index 7490f1605..1cd985846 100644 --- a/ui/src/cohortContext.ts +++ b/ui/src/cohortContext.ts @@ -150,9 +150,7 @@ export function useNewCohortContext(showSnackbar: (message: string) => void) { mutate( (key: { type: string; studyId: string; list: boolean }) => - key.type === "cohort" && - key.studyId === studyId && - key.list, + key.type === "cohort" && key.studyId === studyId && key.list, undefined, { revalidate: true } ); diff --git a/ui/src/featureSet/featureSetContext.ts b/ui/src/featureSet/featureSetContext.ts index bdd80a55c..3c8749bba 100644 --- a/ui/src/featureSet/featureSetContext.ts +++ b/ui/src/featureSet/featureSetContext.ts @@ -146,9 +146,7 @@ export function useNewFeatureSetContext( mutate( (key: { type: string; studyId: string; list: boolean }) => - key.type === "featureSet" && - key.studyId === studyId && - key.list, + key.type === "featureSet" && key.studyId === studyId && key.list, undefined, { revalidate: true } );