mirror of
https://github.com/coder/coder.git
synced 2026-09-22 13:10:21 +08:00
hotfix: initial options as empty array (#7782)
This commit is contained in:
@@ -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