mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +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
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
let options = searchOptionsQuery.data as TOption[]
|
let options = searchOptionsQuery.data ?? []
|
||||||
|
|
||||||
if (selectedOption) {
|
if (selectedOption) {
|
||||||
options = options.filter(
|
options = options.filter(
|
||||||
|
|||||||
Reference in New Issue
Block a user