fix: do not show non value fields in dropdown
This commit is contained in:
parent
7bbac6c703
commit
f947f55fc6
@ -139,9 +139,14 @@ const oldFields = computed(() => {
|
|||||||
const fields = ref(JSON.parse(JSON.stringify(oldFields.value || [])))
|
const fields = ref(JSON.parse(JSON.stringify(oldFields.value || [])))
|
||||||
|
|
||||||
const dropdownFields = computed(() => {
|
const dropdownFields = computed(() => {
|
||||||
return getFields()?.filter(
|
return getFields()?.filter((field) => {
|
||||||
(field) => !fields.value.find((f) => f.fieldname === field.fieldname),
|
return (
|
||||||
)
|
!fields.value.find((f) => f.fieldname === field.fieldname) &&
|
||||||
|
!['Tab Break', 'Section Break', 'Column Break', 'Table'].includes(
|
||||||
|
field.fieldtype,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
function reset() {
|
function reset() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user