瀏覽代碼

fix: adding songs to stations no longer worked

Kristian Vos 1 年之前
父節點
當前提交
5081c7d373
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/logic/stations.js

+ 1 - 1
backend/logic/stations.js

@@ -1969,7 +1969,7 @@ class _StationsModule extends CoreClass {
 
 							if (
 								queueAddBeforeAutofilled === true ||
-								queueAddBeforeAutofilled.indexOf(stationId) !== -1
+								(Array.isArray(queueAddBeforeAutofilled) && queueAddBeforeAutofilled.indexOf(stationId) !== -1)
 							) {
 								let position = station.queue.length;