fix: select options not working

This commit is contained in:
Shariq Ansari 2024-05-20 22:26:25 +05:30
parent 8f1637ffa1
commit f34e9bdaeb

View File

@ -128,6 +128,10 @@ function updateValue(v) {
newValue.value = value
}
function getSelectOptions(options) {
return options.split('\n')
}
function getValueComponent(f) {
const { type, options } = f
if (typeSelect.includes(type) || typeCheck.includes(type)) {
@ -138,6 +142,7 @@ function getValueComponent(f) {
label: o,
value: o,
})),
modelValue: newValue.value,
})
} else if (typeLink.includes(type)) {
if (type == 'Dynamic Link') {