Skip to content

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

fix: addressed suggestion incomplete issue

Sheen Capadngan5ff30aed102d
diff --git a/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx b/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx
index 3a097f29da..348da6a88a 100644
--- a/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx
+++ b/frontend/src/components/v2/SecretPathInput/SecretPathInput.tsx
@@ -43,10 +43,7 @@ export const SecretPathInput = ({
});
useEffect(() => {
- const initialValue = propValue ?? "/";
- setInputValue(initialValue);
- setSecretPath(initialValue);
- onChange?.({ target: { value: initialValue } } as any);
+ setInputValue(propValue ?? "/");
}, [propValue]);
useEffect(() => {
@@ -69,7 +66,6 @@ export const SecretPathInput = ({
// filter suggestions based on matching
const searchFragment = debouncedInputValue.split("/").pop() || "";
-
const filteredSuggestions = folders
.filter((suggestionEntry) =>
suggestionEntry.toUpperCase().startsWith(searchFragment.toUpperCase())