From 8e458f4a0ef002b310b99087f94c692af5d73a9e Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 5 Aug 2022 22:25:51 +0530 Subject: [PATCH] Fix an error on import page when subscriptions are null. --- src/components/ImportPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ImportPage.vue b/src/components/ImportPage.vue index 4d8791d8..2af7cd6a 100644 --- a/src/components/ImportPage.vue +++ b/src/components/ImportPage.vue @@ -155,7 +155,7 @@ export default { importSubscriptionsLocally(newChannels) { const subscriptions = this.override ? [...new Set(newChannels)] - : [...new Set(this.getLocalSubscriptions().concat(newChannels))]; + : [...new Set((this.getLocalSubscriptions() ?? []).concat(newChannels))]; // Sort for better cache hits subscriptions.sort(); localStorage.setItem("localSubscriptions", JSON.stringify(subscriptions));