Skip to content

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

fix(overview): reset secret to original value on undo changes

Scott Wilsonb07e1f8dd94d
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 e56be66315..e043ac0f0e 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx
@@ -223,7 +223,7 @@ export const SecretEditTableRow = ({
}, []);
const handleFormReset = () => {
- reset();
+ reset({ value: sharedValueData?.value ?? (defaultValue || null) });
};
const handleCopySharedToClipboard = async () => {