Skip to content

Commit 59c4025

Browse files
committed
fix(dashboard): FilterConfigModel_BaseSelect.options fallback to empty array, preventing passing undefined to selectors
1 parent 1651bbb commit 59c4025

File tree

1 file changed

+1
-1
lines changed
  • dashboard/src/model/meta-model/dashboard/content/filter/widgets

1 file changed

+1
-1
lines changed

dashboard/src/model/meta-model/dashboard/content/filter/widgets/select-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const FilterBaseSelectConfigMeta = types
4242
// @ts-expect-error untyped getRoot(self)
4343
const { data, state, error } = getRoot(self).content.getDataStuffByID(self.options_query_id);
4444
if (state === 'idle') {
45-
return data;
45+
return Array.isArray(data) ? data : [];
4646
}
4747
return [];
4848
},

0 commit comments

Comments
 (0)