Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(time): Surpress index search errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Feb 10, 2018
1 parent e4ba3f9 commit 2ac5361
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/effects/transcripts/active.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ const buildIndex = (duration = 0, data = []) => {
})

return time => {
if (time) {
return timeIndex.search(time)
let result

try {
result = timeIndex.search(time)
} catch (e) {
result = []
}

return []
return result
}
}

Expand Down

0 comments on commit 2ac5361

Please sign in to comment.