Skip to content

Commit

Permalink
fix: missing optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
ianshade committed Apr 16, 2021
1 parent 93bf3aa commit 11862a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/vizMSE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ class VizMSEManager extends EventEmitter {
element: newEl,
isLoaded: this._isElementLoaded(newEl),
isLoading: this._isElementLoading(newEl),
wasLoaded: cachedEl.wasLoaded
wasLoaded: cachedEl?.wasLoaded
}
this._elementsLoaded[e.hash] = newLoadedEl
this.emit('debug', `Element ${elementRef}: ${JSON.stringify(newEl)}`)
Expand Down

0 comments on commit 11862a9

Please sign in to comment.