forked from verdnatura/salix-front
feat: refs #7874 prevent submit if empty fields
This commit is contained in:
parent
6d674f2a2b
commit
50042ed45b
|
@ -34,6 +34,8 @@ const observationTypes = ref([]);
|
||||||
const vnPaginateRef = ref();
|
const vnPaginateRef = ref();
|
||||||
|
|
||||||
async function insert() {
|
async function insert() {
|
||||||
|
if (!newNote.text || !newNote.observationTypeFk) return;
|
||||||
|
|
||||||
const body = $props.body;
|
const body = $props.body;
|
||||||
const newBody = {
|
const newBody = {
|
||||||
...body,
|
...body,
|
||||||
|
|
Loading…
Reference in New Issue