From 9f1420309bf15fbd8c9abfe401645b09ac9e7116 Mon Sep 17 00:00:00 2001 From: portree_kid Date: Fri, 17 Jul 2020 20:52:27 +0200 Subject: [PATCH] Iligemate ends --- src/renderer/components/CheckPanel.vue | 2 +- src/renderer/utils/check.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/renderer/components/CheckPanel.vue b/src/renderer/components/CheckPanel.vue index 829e15b..481a583 100644 --- a/src/renderer/components/CheckPanel.vue +++ b/src/renderer/components/CheckPanel.vue @@ -7,7 +7,7 @@
-

Check not run

+

Check not run

diff --git a/src/renderer/utils/check.js b/src/renderer/utils/check.js index 4e63c56..cb48a13 100644 --- a/src/renderer/utils/check.js +++ b/src/renderer/utils/check.js @@ -122,10 +122,10 @@ async function checkGroundnet(data) { node2[Number(element.start)] = 1; } - node1 = bidirectionalGraph[element.start]; - node2 = bidirectionalGraph[element.end]; - node1[Number(element.end)] = 1; - node2[Number(element.start)] = 1; + var node3 = bidirectionalGraph[element.start]; + var node4 = bidirectionalGraph[element.end]; + node3[Number(element.end)] = 1; + node4[Number(element.start)] = 1; }); var isLegitEnd = function(v) { if( Object.keys(bidirectionalGraph[v]).length <= 1 ) { @@ -252,7 +252,7 @@ async function checkGroundnet(data) { if (runwayNodes.length === 0) { notOkNodes.push({ id: 0, message: 'No Runwaynodes' }); } - var allEnds = Object.entries(directionalGraph).filter( + var allEnds = Object.entries(bidirectionalGraph).filter( (v, i) => Object.keys(v[1]).length <= 1 ); // Ends that are not on Runway and not a Parking or Pushback