Skip to content

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

fix: dismiss save/undo buttons when value is reset to original value

Scott Wilsonf008d83a268a
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
index b2478a7057..6c404c6c57 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
@@ -272,7 +272,9 @@ export const SecretEditTableRow = ({
originalValueRef.current = sharedValueData.value ?? null;
return;
}
- setValue("value", sharedValueData.value ?? null);
+ reset((prev) => ({ ...prev, value: sharedValueData.value ?? null }), {
+ keepDirtyValues: true
+ });
originalValueRef.current = sharedValueData.value ?? null;
}
}, [sharedValueData]);