Skip to content

Commit e51015f

Browse files
committed
hotfix: initial options as empty array
1 parent 4de4e8e commit e51015f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/WorkspacesPage/filter/autocompletes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const useAutocomplete = <TOption extends BaseOption = BaseOption>({
6363
return undefined
6464
}
6565

66-
let options = searchOptionsQuery.data as TOption[]
66+
let options = searchOptionsQuery.data ?? []
6767

6868
if (selectedOption) {
6969
options = options.filter(

0 commit comments

Comments
 (0)