Skip to content

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

improvement: clear full secret form on create more except environments

Scott Wilsonfdf41e787e3f
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
index a3f13940d2..261a1e7b3c 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
@@ -216,6 +216,9 @@ export const CreateSecretForm = ({ secretPath = "/", defaultSelectedEnvs, onClos
setValue("key", "");
setValue("value", "");
setValue("comment", "");
+ setValue("skipMultilineEncoding", false);
+ setValue("tags", []);
+ setValue("metadata", []);
setTimeout(() => secretKeyInputRef.current?.focus(), 150);
} else {
onClose();