diff --git a/src/components/db-editor/APIObjectDBEditor.vue b/src/components/db-editor/APIObjectDBEditor.vue
index 042d75e9ce2c6ad2e5f4cad3d2f32801d00a1837..2e1cf9d794339dbc9e40404df972e5a11492c068 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]