From 08a0550cd740cc433660517273fac56f7fbea34b Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Fri, 24 Jan 2025 19:21:33 -0800 Subject: [PATCH] fix: correct dependency arra --- .../components/SecretListView/SecretListView.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 83591ef1c..3a89a58ab 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"), []);