|
@@ -247,9 +247,9 @@ const app = Vue.createApp({
|
|
|
/**
|
|
|
* @returns {Object} a new module object from the moduleTemplate
|
|
|
*/
|
|
|
- newModule() {
|
|
|
- return { ...this.moduleTemplate }
|
|
|
- },
|
|
|
+ newModule() {
|
|
|
+ return JSON.parse(JSON.stringify(this.moduleTemplate));
|
|
|
+ },
|
|
|
/**
|
|
|
* spreads a source module into a new module from the moduleTemplate
|
|
|
* @param {Object} sourceModule the module to copy
|
|
@@ -595,7 +595,7 @@ const app = Vue.createApp({
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
- * Creates a new module, set's a default name, and adds it to the editor
|
|
|
+ * Creates a new module, sets a default name, and adds it to the editor
|
|
|
*/
|
|
|
newCustomModule() {
|
|
|
const module = this.newModule();
|