mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: routes id after removing all
This commit is contained in:
parent
106d5edc78
commit
9c97711a99
6 changed files with 15 additions and 10 deletions
|
|
@ -194,7 +194,7 @@ function editRoute(id) {
|
|||
|
||||
// create new route
|
||||
const newRoute = {
|
||||
i: Math.max(...pack.routes.map(route => route.i)) + 1,
|
||||
i: Routes.getNextId(),
|
||||
group: route.group,
|
||||
feature: route.feature,
|
||||
name: route.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue