mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-20 11:38:59 +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) {
|
||||
if(!template) {
|
||||
return;
|
||||
}
|
||||
|
||||
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.nodesDataSource.set(nodes);
|
||||
|
Loading…
Reference in New Issue
Block a user