hotfix: initial options as empty array (#7782)
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user