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())