Skip to content

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

fix: correct dependency arra

Scott Wilson08a0550cd740
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx
index 83591ef1c6..3a89a58ab1 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx
@@ -288,7 +288,12 @@ export const SecretListView = ({
text: "Failed to delete secret"
});
}
- }, [(popUp.deleteSecret?.data as SecretV3RawSanitized)?.key, environment, secretPath]);
+ }, [
+ (popUp.deleteSecret?.data as SecretV3RawSanitized)?.key,
+ environment,
+ secretPath,
+ isProtectedBranch
+ ]);
// for optimization on minimise re-rendering of secret items
const onCreateTag = useCallback(() => handlePopUpOpen("createTag"), []);