0
0
Fork 0

feat: refs #7874 prevent submit if empty fields

This commit is contained in:
Jorge Penadés 2024-10-10 16:49:41 +02:00
parent 6d674f2a2b
commit 50042ed45b
1 changed files with 2 additions and 0 deletions

View File

@ -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,