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));