Skip to content

Commit

Permalink
revert: revert unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Oct 9, 2024
1 parent b3d79d6 commit b45bbcb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/Tune/_Form/FormString.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@ 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 [];
});
</script>

<template>
<TuneListbox
v-if="(definition?.enum || definition?.anyOf) && itemsListbox.length"
v-if="definition?.enum || definition?.anyOf"
ref="textInputRef"
:items="itemsListbox"
:model-value="modelValue"
Expand Down

0 comments on commit b45bbcb

Please sign in to comment.