Skip to content

Commit

Permalink
fix: 控制台报错 (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Jun 21, 2023
1 parent fc0dad7 commit 1b57938
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/controller/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ angular.module('listenone').controller('PlayController', [
$scope.staged_playlist = [];
while ($scope.staged_playlist.length < STAGED_LENGTH) {
const song = $scope.playlist[getSafeIndex(i, $scope.playlist.length)];
if (!song) {
break;
}
$scope.staged_playlist.push({ ...song, stageId: `${song.id}_${i}` });
i += 1;
}
Expand Down

0 comments on commit 1b57938

Please sign in to comment.