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