Просмотр исходного кода

fix: Station undefined in autorequestExcludedMediaSources

Owen Diffey 3 недель назад
Родитель
Сommit
68d05b0a5d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      frontend/src/stores/station.ts

+ 1 - 1
frontend/src/stores/station.ts

@@ -93,7 +93,7 @@ export const useStationStore = defineStore("station", {
 			const {
 				autorequestDisallowRecentlyPlayedEnabled,
 				autorequestDisallowRecentlyPlayedNumber
-			} = this.station.requests;
+			} = this.station?.requests ?? {};
 
 			// If the station is set to disallow recently played songs, and station history is enabled, exclude the last X history songs
 			if (