From 4bcce618293d68585bfd9cc86fa3a6af65bbe235 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 4 Feb 2025 12:45:32 +0100 Subject: [PATCH] Changes in EntityEdit Query Loading --- components/EntityEdit.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/EntityEdit.vue b/components/EntityEdit.vue index 0e99afc..d6fd9a1 100644 --- a/components/EntityEdit.vue +++ b/components/EntityEdit.vue @@ -74,12 +74,14 @@ setupCreate() const setupQuery = () => { if(route.query) { - Object.keys(route.query).forEach(key => { - if(["customer","contract","plant","contact"].includes(key)){ - item.value[key] = Number(route.query[key]) - } else { - item.value[key] = route.query[key] + if(dataType.templateColumns.find(i => i.key === key)) { + console.log(key) + if (["customer", "contract", "plant", "contact", "project"].includes(key)) { + item.value[key] = Number(route.query[key]) + } else { + item.value[key] = route.query[key] + } } }) }