#7711 Fixed movement when network link is deleted

This commit is contained in:
Daniel Maya 2021-08-06 12:46:55 +02:00
parent cd500fe67b
commit 64c9ed4453
3 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -567,6 +567,10 @@ export default class VisualConsole {
Object.keys(this.lineLinks[item.id]).forEach(i => {
let lineId = parseInt(i);
const found = this.elementIds.indexOf(lineId);
if (found === -1) {
return;
}
let line = this.elementsById[lineId] as Line;
if (line.props) {
let startX = line.props.startPosition.x;