Gracefully handle events with invalid locations
This commit is contained in:
parent
e45e51ef7a
commit
f42dfcc13d
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ function* spansFromJunctions(
|
|||
for (const edge of start.edges) {
|
||||
if (edge.type === "start") {
|
||||
for (const location of edge.slot.locations) {
|
||||
activeLocations.get(location)!.add(edge.slot)
|
||||
activeLocations.get(location)?.add(edge.slot)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ function* spansFromJunctions(
|
|||
for (const edge of end.edges) {
|
||||
if (edge.type === "end") {
|
||||
for (const location of edge.slot.locations) {
|
||||
activeLocations.get(location)!.delete(edge.slot)
|
||||
activeLocations.get(location)?.delete(edge.slot)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue