fix: correct dependency arra

This commit is contained in:
Scott Wilson
2025-01-24 19:21:33 -08:00
parent 860eaae4c8
commit 08a0550cd7
@@ -288,7 +288,12 @@ export const SecretListView = ({
text: "Failed to delete secret" 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 // for optimization on minimise re-rendering of secret items
const onCreateTag = useCallback(() => handlePopUpOpen("createTag"), []); const onCreateTag = useCallback(() => handlePopUpOpen("createTag"), []);