fix: remove route if it has <2 points

This commit is contained in:
Azgaar 2024-09-21 13:43:46 +02:00 committed by sofronaspe
parent 4c2f878225
commit 28a69b930c
3 changed files with 3 additions and 2 deletions

View file

@ -727,6 +727,7 @@ window.Routes = (function () {
for (const point of route.points) {
const from = point[2];
if (!routes[from]) continue;
for (const [to, routeId] of Object.entries(routes[from])) {
if (routeId === route.i) {