mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: check if preferencesStore is defined (#21958)
This commit is contained in:
parent
b26b452530
commit
15f182902f
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ export class GCastDestination implements ICastDestination {
|
||||||
|
|
||||||
async initialize(): Promise<boolean> {
|
async initialize(): Promise<boolean> {
|
||||||
const preferencesStore = get(preferences);
|
const preferencesStore = get(preferences);
|
||||||
if (!preferencesStore.cast.gCastEnabled) {
|
if (!preferencesStore || !preferencesStore.cast.gCastEnabled) {
|
||||||
this.isAvailable = false;
|
this.isAvailable = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue