From 2cf6d2326250740a27856f096bf403e8afad1a0f Mon Sep 17 00:00:00 2001 From: Justin Alink Date: Fri, 15 Sep 2023 12:02:05 +0200 Subject: [PATCH] fix bug, preselect VACs and Websites --- src/features/contactmoment/ContactmomentVraag.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/features/contactmoment/ContactmomentVraag.vue b/src/features/contactmoment/ContactmomentVraag.vue index 69b7016bd..888512313 100644 --- a/src/features/contactmoment/ContactmomentVraag.vue +++ b/src/features/contactmoment/ContactmomentVraag.vue @@ -49,8 +49,10 @@ onMounted(() => { ...vraag.value.vacs.map((item) => item.vac), ]).value; - selectedVraag.value = vraag; - + if(vraag.value.vraag){ + selectedVraag.value = vraag.value.vraag; + } + if (sectionIndex !== undefined) { const vraagIndex = vraagOptions.value.indexOf( vraag.value.vraag as {