Skip to content

Commit

Permalink
fix: bug which caused unit test "too many start events" to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Mar 30, 2022
1 parent 603cf9d commit 7412021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolver/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export function resolveStates(resolved: ResolvedTimeline, cache?: ResolverCache)
stateLayer[startTime].startCount++
stateLayer[startTime].objectInstance = newObjInstance

if (instance.end) {
if (instance.end !== null) {
const endTime = instance.end + ''
if (!stateLayer[endTime]) {
stateLayer[endTime] = {
Expand Down

0 comments on commit 7412021

Please sign in to comment.