From f34e9bdaeb30e0fda1fe47f19a42bf0fed4bf547 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 20 May 2024 22:26:25 +0530 Subject: [PATCH] fix: select options not working --- frontend/src/components/Modals/EditValueModal.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/components/Modals/EditValueModal.vue b/frontend/src/components/Modals/EditValueModal.vue index 0a9e2851..9f60a6fa 100644 --- a/frontend/src/components/Modals/EditValueModal.vue +++ b/frontend/src/components/Modals/EditValueModal.vue @@ -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') {