mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 04:11:29 +03:00
fixed bug where no subscriptions resulted in a client error
This commit is contained in:
@@ -33,6 +33,9 @@ export class SubscriptionsComponent implements OnInit {
|
|||||||
this.postsService.getAllSubscriptions().subscribe(res => {
|
this.postsService.getAllSubscriptions().subscribe(res => {
|
||||||
this.subscriptions_loading = false;
|
this.subscriptions_loading = false;
|
||||||
this.subscriptions = res['subscriptions'];
|
this.subscriptions = res['subscriptions'];
|
||||||
|
if (!this.subscriptions) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (let i = 0; i < this.subscriptions.length; i++) {
|
for (let i = 0; i < this.subscriptions.length; i++) {
|
||||||
const sub = this.subscriptions[i];
|
const sub = this.subscriptions[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user