Initialization on auth component happens in a separate function, users_db primarily sits in app.js

Fixed bug where current download would set to null, but maincomponent still tried to parse it
This commit is contained in:
Adam Verga
2020-04-29 20:46:29 -04:00
parent 6980828853
commit 0fb00bac12
4 changed files with 89 additions and 66 deletions

View File

@@ -1129,6 +1129,9 @@ export class MainComponent implements OnInit {
}
getCurrentDownload() {
if (!this.current_download) {
return;
}
const ui_uid = this.current_download['ui_uid'] ? this.current_download['ui_uid'] : this.current_download['uid'];
this.postsService.getCurrentDownload(this.postsService.session_id, ui_uid).subscribe(res => {
if (res['download']) {