From c25a75f497e2a9f81354091be6ddf296cb73a2f9 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Sat, 18 Jan 2025 18:31:07 +0530 Subject: [PATCH] feat: check if item is present (#10715) --- .../dashboard/components-next/message/bubbles/Form.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/dashboard/components-next/message/bubbles/Form.vue b/app/javascript/dashboard/components-next/message/bubbles/Form.vue index 0bf92a07b..ca9af4994 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Form.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Form.vue @@ -30,6 +30,7 @@ const formValues = computed(() => { if (contentType.value === CONTENT_TYPES.INPUT_SELECT) { const [item] = contentAttributes.value?.submittedValues ?? []; + if (!item) return []; return [ {