Skip to content

Commit 1f3486f

Browse files
committed
Fix for Sentry OPENSHOT-1P: TypeError: Cannot read property 'has_video' of undefined (take 2)
1 parent a04fc44 commit 1f3486f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeline/js/controllers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ App.controller("TimelineCtrl", function ($scope) {
688688
* @return {string}
689689
*/
690690
$scope.getThumbPath = function (clip) {
691-
if (!clip || !clip["reader"]) {
691+
if (!clip || !clip.reader) {
692692
console.error("Invalid clip object or missing reader property in getThumbPath");
693693
return "../images/NotFound.svg";
694694
}

0 commit comments

Comments
 (0)