From 9ddda1a933bd92aa0eef021cd3c672c139484133 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sat, 13 Dec 2025 14:00:14 +0100 Subject: [PATCH] Fixed linkedDocuments Agrar --- pages/createDocument/edit/[[id]].vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue index 57fc5ed..23aa8d1 100644 --- a/pages/createDocument/edit/[[id]].vue +++ b/pages/createDocument/edit/[[id]].vue @@ -141,9 +141,9 @@ const setupPage = async () => { //TODO: Implement Checking for Same Customer, Contact and Project - itemInfo.value.customer = linkedDocuments[0].customer - itemInfo.value.project = linkedDocuments[0].project - itemInfo.value.contact = linkedDocuments[0].contact + itemInfo.value.customer = linkedDocuments[0].customer ? linkedDocuments[0].customer.id : null + itemInfo.value.project = linkedDocuments[0].project ? linkedDocuments[0].project.id : null + itemInfo.value.contact = linkedDocuments[0].contact ? linkedDocuments[0].contact.id : null setCustomerData()