소스 검색

Tweaked next/after song logic.

Kris 9 년 전
부모
커밋
61602188d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/app.js

+ 1 - 1
app/app.js

@@ -483,7 +483,7 @@ if (Meteor.isClient) {
                                 if (index + 2 < songs.length) {
                                     console.log("OOO 1");
                                     afterSong = songs[index + 2];
-                                } else if (songs.length === index + 1) {
+                                } else if (songs.length === index + 1 && songs.length > 1 ) {
                                     afterSong = songs[1];
                                 } else {
                                     afterSong = songs[0];