浏览代码

Fixed error on loading custom modules

Nathan Schneider 2 年之前
父节点
当前提交
bbaee76681
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/js/vue.rules.js

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

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