Browse Source

fix: adding songs to stations no longer worked

Kristian Vos 1 year ago
parent
commit
5081c7d373
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/logic/stations.js

+ 1 - 1
backend/logic/stations.js

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