Start logic for adding nodes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-10-14 09:23:25 -05:00
parent 413fb8b94e
commit 8b28109ab0
5 changed files with 74 additions and 12 deletions

View File

@@ -34,7 +34,13 @@ export class NormComponent extends EditorNodeContract implements OnInit {
ngOnInit() {
this.editorService.registerNodeEditor(this.nodeId, this).then(() => {
this.initialValue = this.node.Value.Value;
if ( !this.node.Value ) {
this.node.Value = {};
}
if ( this.node.Value.Value ) {
this.initialValue = this.node.Value.Value;
}
this.contents = this.initialValue;
});
}