Fix tests
This commit is contained in:
parent
dfb16fa802
commit
4638f82635
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ export class Changes {
|
||||||
// If a pending change contains a negative ID, we save that
|
// If a pending change contains a negative ID, we save that
|
||||||
this._nextId = Math.min(-1, ...this.pendingChanges.data?.map(pch => pch.id) ?? [])
|
this._nextId = Math.min(-1, ...this.pendingChanges.data?.map(pch => pch.id) ?? [])
|
||||||
this.state = state;
|
this.state = state;
|
||||||
this._changesetHandler = state.osmConnection.CreateChangesetHandler(state.allElements, this)
|
this._changesetHandler = state?.osmConnection?.CreateChangesetHandler(state.allElements, this)
|
||||||
|
|
||||||
// Note: a changeset might be reused which was opened just before and might have already used some ids
|
// Note: a changeset might be reused which was opened just before and might have already used some ids
|
||||||
// This doesn't matter however, as the '-1' is per piecewise upload, not global per changeset
|
// This doesn't matter however, as the '-1' is per piecewise upload, not global per changeset
|
||||||
|
|
Loading…
Reference in a new issue