Fix error when subscriptions are null.

This commit is contained in:
Kavin 2022-08-04 11:38:04 +05:30
parent c37b5390cf
commit 4bacca566e
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -217,7 +217,7 @@ const mixin = {
localStorage.setItem("localSubscriptions", JSON.stringify(localSubscriptions));
},
getUnauthenticatedChannels() {
const localSubscriptions = this.getLocalSubscriptions();
const localSubscriptions = this.getLocalSubscriptions() ?? [];
return localSubscriptions.join(",");
},
},