MOBILE-4470 course-summary: Fix download status not updated
parent
1c84715f9a
commit
63777bc439
|
@ -123,7 +123,7 @@ export class CoreCourseModuleSummaryComponent implements OnInit, OnDestroy {
|
|||
this.packageStatusObserver = CoreEvents.on(
|
||||
CoreEvents.PACKAGE_STATUS_CHANGED,
|
||||
(data) => {
|
||||
if (data.componentId == module.id && data.component == this.component) {
|
||||
if (data.componentId === this.module?.id && data.component == this.component) {
|
||||
this.getPackageStatus();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue