Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 382cc3d

Browse files
committed
🐛 History navigation keeps stop area order
1 parent b5b7aeb commit 382cc3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/StopsManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function queryUpdated(to: RouteLocationNormalized) {
4444
router.push({ query });
4545
continue;
4646
}
47-
selectedStopAreas.value = [...selectedStopAreas.value, StopAreaDetails];
47+
selectedStopAreas.value.splice(parseInt(k) - 1, 0, StopAreaDetails);
4848
}
4949

5050
selectedStopAreas.value = selectedStopAreas.value.filter((sa) => {

0 commit comments

Comments
 (0)