Skip to content

Commit 0d7a3a7

Browse files
committed
Check that rows exists.
1 parent aa7fcf8 commit 0d7a3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/static/js/opal/controllers/episode_list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ angular.module('opal.controllers').controller(
6161
return episodeVisibility(episode, $scope)
6262
});
6363
visibleEpisodes.sort(compareEpisodes);
64-
if(visibleEpisodes.length == 1){
64+
if($scope.rows && visibleEpisodes.length == 1){
6565
rix = getRowIxFromEpisodeId(visibleEpisodes[0].id);
6666
$scope.select_episode(visibleEpisodes[0], rix);
6767
}

0 commit comments

Comments
 (0)