mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix an error on import page when subscriptions are null.
This commit is contained in:
parent
4bacca566e
commit
8e458f4a0e
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ export default {
|
||||||
importSubscriptionsLocally(newChannels) {
|
importSubscriptionsLocally(newChannels) {
|
||||||
const subscriptions = this.override
|
const subscriptions = this.override
|
||||||
? [...new Set(newChannels)]
|
? [...new Set(newChannels)]
|
||||||
: [...new Set(this.getLocalSubscriptions().concat(newChannels))];
|
: [...new Set((this.getLocalSubscriptions() ?? []).concat(newChannels))];
|
||||||
// Sort for better cache hits
|
// Sort for better cache hits
|
||||||
subscriptions.sort();
|
subscriptions.sort();
|
||||||
localStorage.setItem("localSubscriptions", JSON.stringify(subscriptions));
|
localStorage.setItem("localSubscriptions", JSON.stringify(subscriptions));
|
||||||
|
|
Loading…
Reference in a new issue