diff --git a/src/components/Tune/_Form/FormString.vue b/src/components/Tune/_Form/FormString.vue index e4f892b0d549..838ef433084e 100644 --- a/src/components/Tune/_Form/FormString.vue +++ b/src/components/Tune/_Form/FormString.vue @@ -27,10 +27,12 @@ const itemsListbox = computed(() => { value: item })); } else if (props.definition?.anyOf) { - return props.definition.anyOf.map((item: any) => ({ - value: item.const, - name: item.title - })); + return props.definition.anyOf + .filter(item => item.const && item.title) + .map((item: any) => ({ + value: item.const, + name: item.title + })); } return []; }); @@ -38,7 +40,7 @@ const itemsListbox = computed(() => {