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)); localStorage.setItem("localSubscriptions", JSON.stringify(localSubscriptions));
}, },
getUnauthenticatedChannels() { getUnauthenticatedChannels() {
const localSubscriptions = this.getLocalSubscriptions(); const localSubscriptions = this.getLocalSubscriptions() ?? [];
return localSubscriptions.join(","); return localSubscriptions.join(",");
}, },
}, },