mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-29 15:29:50 +00:00
Ignore missing template during creation
This commit is contained in:
parent
6734776153
commit
a12f8e6ddd
@ -249,6 +249,10 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onNodeCreation(template: Template) {
|
onNodeCreation(template: Template) {
|
||||||
|
if(!template) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.nodeService.createFromTemplate(this.server, this.project, template, 0, 0, 'local').subscribe(() => {
|
this.nodeService.createFromTemplate(this.server, this.project, template, 0, 0, 'local').subscribe(() => {
|
||||||
this.projectService.nodes(this.server, this.project.project_id).subscribe((nodes: Node[]) => {
|
this.projectService.nodes(this.server, this.project.project_id).subscribe((nodes: Node[]) => {
|
||||||
this.nodesDataSource.set(nodes);
|
this.nodesDataSource.set(nodes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user