From b45bbcbbc0dd7dbbef102e18e919353ace7a2432 Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Wed, 9 Oct 2024 23:20:43 +0400 Subject: [PATCH] revert: revert unrelated changes --- src/components/Tune/_Form/FormString.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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(() => {