Fixed library node insert button

This commit is contained in:
Stefan Zermatten
2023-06-07 10:36:45 +02:00
parent e068cf27b3
commit 99b5ad4e82
3 changed files with 18 additions and 38 deletions

View File

@@ -329,7 +329,8 @@ export default {
this.tab = 1;
this.schema = propertySchemasIndex[type];
this.validationContext = this.schema.newContext();
let model = this.schema.clean(this.model || {});
let model = this.model || {};
model = this.schema.clean(model);
model.type = type;
this.model = model;
},