Browse Source

Fixed error on loading custom modules

Nathan Schneider 2 years ago
parent
commit
bbaee76681
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/js/vue.rules.js

+ 1 - 1
assets/js/vue.rules.js

@@ -269,7 +269,6 @@ const app = Vue.createApp({
             "Configuration";
             "Configuration";
       document.getElementById("newConfigValue").value =
       document.getElementById("newConfigValue").value =
             "Value";
             "Value";
-      output.config = {};
       // delete unnecessary properties
       // delete unnecessary properties
       delete output.content;
       delete output.content;
       delete output.readonly;
       delete output.readonly;
@@ -629,6 +628,7 @@ const app = Vue.createApp({
     newCustomModule() {
     newCustomModule() {
       const module = this.newModule();
       const module = this.newModule();
       module.name = 'New Module';
       module.name = 'New Module';
+      module.config = {};
       this.addToEditor(module);
       this.addToEditor(module);
     },
     },
     /**
     /**