fix: remove route if it has <2 points

This commit is contained in:
Azgaar 2024-09-21 13:43:46 +02:00
parent 601e71b846
commit 877afa546d
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) {