mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 23:47:25 +00:00
Fix an error on import page when subscriptions are null.
This commit is contained in:
parent
4bacca566e
commit
8e458f4a0e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user