more requested changes

This commit is contained in:
Daniel Hougaard
2024-12-12 03:34:08 +04:00
parent 1ace8eebf8
commit c000a6f707
2 changed files with 6 additions and 2 deletions

View File

@@ -127,7 +127,9 @@ export const CreateSecretForm = ({
e.preventDefault();
setValue("key", key);
setValue("value", value);
if (value) {
setValue("value", value);
}
}
};

View File

@@ -171,7 +171,9 @@ export const CreateSecretForm = ({ secretPath = "/", onClose }: Props) => {
e.preventDefault();
setValue("key", key);
setValue("value", value);
if (value) {
setValue("value", value);
}
}
};