From 6d9a9fef613ebef861f2c3d0a74df24ecc8ceec8 Mon Sep 17 00:00:00 2001
From: Janis Streib <janis.streib@kit.edu>
Date: Thu, 19 Dec 2024 19:20:02 +0100
Subject: [PATCH] FIX: dbeditor: allow hybird operation

---
 src/components/db-editor/APIObjectDBEditor.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/db-editor/APIObjectDBEditor.vue b/src/components/db-editor/APIObjectDBEditor.vue
index 042d75e9c..2e1cf9d79 100644
--- a/src/components/db-editor/APIObjectDBEditor.vue
+++ b/src/components/db-editor/APIObjectDBEditor.vue
@@ -87,7 +87,7 @@ export default {
           if (e[0] in new_params && this.object_definition.attributes[e[0]].data_type.endsWith('_array')) {
             new_params[e[0]].push(e[1])
           } else {
-            if (this.object_definition.attributes[e[0]].data_type.endsWith('_array')) {
+            if (e[0] in this.object_definition.attributes && this.object_definition.attributes[e[0]].data_type.endsWith('_array')) {
               new_params[e[0]] = [e[1]]
             } else {
               new_params[e[0]] = e[1]
-- 
GitLab