Browse Source

fix: Station undefined in autorequestExcludedMediaSources

Owen Diffey 3 weeks ago
parent
commit
68d05b0a5d
1 changed files with 1 additions and 1 deletions
  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 (