This commit is contained in:
ziajka 2018-11-08 15:40:30 +01:00
parent 56138f7fb7
commit 290ca022e2
2 changed files with 0 additions and 2 deletions

View File

@ -26,7 +26,6 @@ export class DrawingsDraggableListener {
let drawings = this.selectionManager.getSelectedDrawings(); let drawings = this.selectionManager.getSelectedDrawings();
if (drawings.filter((n: Drawing) => n.drawing_id === evt.datum.drawing_id).length === 0) { if (drawings.filter((n: Drawing) => n.drawing_id === evt.datum.drawing_id).length === 0) {
this.selectionManager.setSelectedDrawings([evt.datum]); this.selectionManager.setSelectedDrawings([evt.datum]);
drawings = this.selectionManager.getSelectedDrawings();
} }
}); });

View File

@ -30,7 +30,6 @@ export class NodesDraggableListener {
let nodes = this.selectionManager.getSelectedNodes(); let nodes = this.selectionManager.getSelectedNodes();
if (nodes.filter((n: Node) => n.node_id === evt.datum.node_id).length === 0) { if (nodes.filter((n: Node) => n.node_id === evt.datum.node_id).length === 0) {
this.selectionManager.setSelectedNodes([evt.datum]); this.selectionManager.setSelectedNodes([evt.datum]);
nodes = this.selectionManager.getSelectedNodes();
} }
}); });