Skip to content

Commit

Permalink
[qa] fix edge case of undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Jan 10, 2025
1 parent 88e179c commit 278d4cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/mixins/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ export const playerMixin = {
} else if (this.isCurrentPreviewModel) {
this.playModel()
} else {
if (!this.rawPlayer) return
this._setCurrentTimeOnHandleIn()
this.rawPlayer.play()
if (this.isComparing) {
Expand Down Expand Up @@ -594,6 +595,7 @@ export const playerMixin = {
previousFrameTime = previousFrame / this.fps
this.setFullPlayerTime(previousFrameTime)
} else {
if (!this.rawPlayer) return
this.rawPlayer.goPreviousFrame()
if (this.isComparing) this.syncComparisonPlayer()
const annotation = this.getAnnotation(this.rawPlayer.getCurrentTime())
Expand Down

0 comments on commit 278d4cb

Please sign in to comment.