diff --git a/src/app/onion/dashboard/dashboard.component.ts b/src/app/onion/dashboard/dashboard.component.ts index bd026a8bf..91a9866b5 100644 --- a/src/app/onion/dashboard/dashboard.component.ts +++ b/src/app/onion/dashboard/dashboard.component.ts @@ -222,7 +222,7 @@ export class DashboardComponent implements OnInit, OnDestroy { filters?: any, text?: string, ): Promise { - this.searchService + await this.searchService .getUsersLearningObjects(this.auth.username, { ...filters, text, @@ -236,10 +236,9 @@ export class DashboardComponent implements OnInit, OnDestroy { this.sortLearningObjectsByDate( response.learningObjects, ); + this.checkQueryParams$.next(); }, ); - - this.checkQueryParams$.next(); } /** * Toggles between the draft tab and the released tab