mirror of
https://github.com/Infisical/infisical.git
synced 2026-05-02 03:02:03 -04:00
fix: addressed suggestion incomplete issue
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user