Skip to content

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

more requested changes

Daniel Hougaardc000a6f707fb
diff --git a/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx
index 0710bb5337..db53d26ae3 100644
--- a/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx
+++ b/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx
@@ -127,7 +127,9 @@ export const CreateSecretForm = ({
e.preventDefault();
setValue("key", key);
- setValue("value", value);
+ if (value) {
+ setValue("value", value);
+ }
}
};
diff --git a/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
index ea6cbe61ef..aabd7899e2 100644
--- a/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
+++ b/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
@@ -171,7 +171,9 @@ export const CreateSecretForm = ({ secretPath = "/", onClose }: Props) => {
e.preventDefault();
setValue("key", key);
- setValue("value", value);
+ if (value) {
+ setValue("value", value);
+ }
}
};