From ce6a7273000853dafee915c735ab09b017f53e10 Mon Sep 17 00:00:00 2001 From: ziajka Date: Tue, 27 Mar 2018 17:29:41 +0200 Subject: [PATCH] Get nodes earlier than nodes for compatibility --- src/app/project-map/project-map.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/project-map/project-map.component.ts b/src/app/project-map/project-map.component.ts index db615238..74b1995d 100644 --- a/src/app/project-map/project-map.component.ts +++ b/src/app/project-map/project-map.component.ts @@ -141,18 +141,18 @@ export class ProjectMapComponent implements OnInit { this.symbolService .load(this.server) .flatMap(() => { - return this.projectService.drawings(this.server, project.project_id); + return this.projectService.nodes(this.server, project.project_id); }) - .flatMap((drawings: Drawing[]) => { - this.drawingsDataSource.set(drawings); + .flatMap((nodes: Node[]) => { + this.nodesDataSource.set(nodes); return this.projectService.links(this.server, project.project_id); }) .flatMap((links: Link[]) => { this.linksDataSource.set(links); - return this.projectService.nodes(this.server, project.project_id); + return this.projectService.drawings(this.server, project.project_id); }) - .subscribe((nodes: Node[]) => { - this.nodesDataSource.set(nodes); + .subscribe((drawings: Drawing[]) => { + this.drawingsDataSource.set(drawings); this.setUpMapCallbacks(project); this.setUpWS(project);