diff --git a/packages/core/client/src/collection-manager/Configuration/components/index.tsx b/packages/core/client/src/collection-manager/Configuration/components/index.tsx index 5ff02f77b..cdae91815 100644 --- a/packages/core/client/src/collection-manager/Configuration/components/index.tsx +++ b/packages/core/client/src/collection-manager/Configuration/components/index.tsx @@ -325,6 +325,17 @@ export const ThroughCollection = observer( setInitialValue(option?.label || value); } }, []); + const handleSearch = (value: string) => { + if (value) { + const filteredOptions = options.filter((option) => { + return option.label.toLowerCase().includes(value.toLowerCase()); + }); + setOptions(filteredOptions); + } else { + const data = loadCollections(); + setOptions(data); + } + }; return (
{ props?.onChange?.(value); - setInitialValue(option.label); + setInitialValue(option.label || value); }} />