瀏覽代碼

fix: Station undefined in autorequestExcludedMediaSources

Owen Diffey 3 周之前
父節點
當前提交
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 (