MOBILE-4470 h5pactivity: Fix wrong state loaded after synchronize

main
Dani Palou 2024-05-30 16:50:09 +02:00
parent 1c6551a6e0
commit 248b74d5c8
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,7 @@ export class AddonModH5PActivityIndexComponent extends CoreCourseModuleMainActiv
protected async loadContentState(): Promise<void> {
if (!this.h5pActivity || !this.accessInfo || !AddonModH5PActivity.isSaveStateEnabled(this.h5pActivity, this.accessInfo)) {
this.saveStateEnabled = false;
this.contentState = undefined;
return;
}
@ -260,6 +261,8 @@ export class AddonModH5PActivityIndexComponent extends CoreCourseModuleMainActiv
);
if (contentState === null) {
this.contentState = undefined;
return;
}