hotfix: initial options as empty array (#7782)

This commit is contained in:
Bruno Quaresma authored and GitHub committed 2023-06-01 18:25:54 +00:00
1 parent ba3e6cea51
commit 0f439d5374
1 file changed
+1 -1
@@ -63,7 +63,7 @@ const useAutocomplete = <TOption extends BaseOption = BaseOption>({
return undefined
}
let options = searchOptionsQuery.data as TOption[]
let options = searchOptionsQuery.data ?? []
if (selectedOption) {
options = options.filter(