From 50042ed45be0484c3c5d9ed5c71fdb5ffba97250 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 10 Oct 2024 16:49:41 +0200 Subject: [PATCH] feat: refs #7874 prevent submit if empty fields --- src/components/ui/VnNotes.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ui/VnNotes.vue b/src/components/ui/VnNotes.vue index 92dd32691..63b21f92a 100644 --- a/src/components/ui/VnNotes.vue +++ b/src/components/ui/VnNotes.vue @@ -34,6 +34,8 @@ const observationTypes = ref([]); const vnPaginateRef = ref(); async function insert() { + if (!newNote.text || !newNote.observationTypeFk) return; + const body = $props.body; const newBody = { ...body,