Fixed opening blank component editor
This commit is contained in:
parent
c354cb378a
commit
6b86486fe3
@ -28,7 +28,11 @@ export class ViewComponents {
|
|||||||
}
|
}
|
||||||
|
|
||||||
createComponent(component?) {
|
createComponent(component?) {
|
||||||
this.dialog.open(NewComponentComponent, {data: component});
|
if(component) {
|
||||||
|
this.dialog.open(NewComponentComponent, { data: component })
|
||||||
|
} else {
|
||||||
|
this.dialog.open(NewComponentComponent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(component) {
|
delete(component) {
|
||||||
|
Loading…
Reference in New Issue
Block a user