Fixed opening blank component editor

This commit is contained in:
Zakary Timson 2018-07-23 18:47:43 -04:00
parent c354cb378a
commit 6b86486fe3

View File

@ -28,7 +28,11 @@ export class ViewComponents {
}
createComponent(component?) {
this.dialog.open(NewComponentComponent, {data: component});
if(component) {
this.dialog.open(NewComponentComponent, { data: component })
} else {
this.dialog.open(NewComponentComponent);
}
}
delete(component) {