mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 07:19:50 -04:00
only use remote object if its defined.
This commit is contained in:
parent
3ab1e1ad62
commit
2bf8fd38a4
@ -324,7 +324,7 @@ export class StorageService extends SubscriberBase {
|
||||
|
||||
// since you updated the local variable above, this remote update will
|
||||
// get picked up by the remote subscription below.
|
||||
if (v.syncCardsAcrossDevices) {
|
||||
if (this.cardsRemoteObject && v.syncCardsAcrossDevices) {
|
||||
this.cardsRemoteObject.set(v.currentCards);
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user