Fix label of added node (when GUI is not running). Fixes #292

This commit is contained in:
ziajka
2019-04-29 06:38:41 +02:00
parent a4c3bd254b
commit d04aea0f25
5 changed files with 32 additions and 13 deletions

View File

@ -279,6 +279,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
nodes.filter((node) => node.label.style === null).forEach((node) => {
const fixedNode = this.nodeCreatedLabelStylesFixer.fix(node);
this.nodeService.updateLabel(this.server, node, fixedNode.label).subscribe();
});
this.nodesDataSource.set(nodes);