hotfix: initial options as empty array (#7782)

This commit is contained in:
Bruno Quaresma
2023-06-01 18:25:54 +00:00
committed by GitHub
parent ba3e6cea51
commit 0f439d5374
@@ -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(