mirror of
https://github.com/immich-app/immich.git
synced 2025-12-05 20:40:29 -08:00
fix: check if preferencesStore is defined (#21958)
This commit is contained in:
@@ -27,7 +27,7 @@ export class GCastDestination implements ICastDestination {
|
||||
|
||||
async initialize(): Promise<boolean> {
|
||||
const preferencesStore = get(preferences);
|
||||
if (!preferencesStore.cast.gCastEnabled) {
|
||||
if (!preferencesStore || !preferencesStore.cast.gCastEnabled) {
|
||||
this.isAvailable = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user