Merge pull request #3675 from NoelDeMartin/MOBILE-4270

MOBILE-4270 course: Fix module sizes on refresh
main
Dani Palou 2023-05-11 15:21:19 +02:00 committed by GitHub
commit fa9cbd0315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -685,6 +685,7 @@ export class AddonStorageManagerCourseStoragePage implements OnInit, OnDestroy {
isGuest: this.isGuest, isGuest: this.isGuest,
}, },
); );
await Promise.all(this.sections.map(section => this.updateModulesSizes(section.modules, section)));
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
} catch (error) { } catch (error) {
if (this.isDestroyed) { if (this.isDestroyed) {