Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvement: add query invalidation upon secret replication

Scott Wilson852f2d7b7702
diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
index ff62574f42..4916fe447a 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
@@ -820,6 +820,10 @@ export const OverviewPage = () => {
);
}
+ queryClient.invalidateQueries({
+ queryKey: secretKeys.getProjectSecret({ projectId, environment, secretPath })
+ });
+
handlePopUpClose("confirmReplicateUpload");
createNotification({
type: "success",