Simplified archive creation for subscriptions to reduce risk of error

If no subscriptions have ever been made, "No channel/playlist subscriptions" text will now show
This commit is contained in:
Isaac Grynsztein
2020-04-12 21:00:47 -04:00
parent 10b59191f6
commit d9f6b8c64c
2 changed files with 6 additions and 8 deletions

View File

@@ -34,6 +34,8 @@ export class SubscriptionsComponent implements OnInit {
this.subscriptions_loading = false;
this.subscriptions = res['subscriptions'];
if (!this.subscriptions) {
// set it to an empty array so it can notify the user there are no subscriptions
this.subscriptions = [];
return;
}