feat: removed trailing slash from secret input and fixed overview not showing nested imported secrets

This commit is contained in:
=
2024-06-12 00:17:42 +05:30
parent 3929a82099
commit 9a2355fe63
3 changed files with 14 additions and 20 deletions
@@ -78,7 +78,8 @@ export const SecretPathInput = ({
const validPaths = inputValue.split("/");
validPaths.pop();
const newValue = `${validPaths.join("/")}/${suggestions[selectedIndex]}/`;
// removed trailing slash
const newValue = `${validPaths.join("/")}/${suggestions[selectedIndex]}`;
onChange?.(newValue);
setInputValue(newValue);
setSecretPath(newValue);