MOBILE-2795 data: Fix undefined contents console error

main
Pau Ferrer Ocaña 2019-01-07 09:54:59 +01:00
parent e11cadbfe1
commit 746ebf5afe
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@
</ion-select> </ion-select>
</ion-item> </ion-item>
<div class="addon-data-contents {{cssClass}}"> <div class="addon-data-contents {{cssClass}}" *ngIf="entry">
<style *ngIf="cssTemplate"> <style *ngIf="cssTemplate">
{{ cssTemplate }} {{ cssTemplate }}
</style> </style>

View File

@ -215,6 +215,7 @@ export class AddonModDataEntryPage implements OnDestroy {
*/ */
gotoEntry(entry: number): Promise<any> { gotoEntry(entry: number): Promise<any> {
this.entryId = entry; this.entryId = entry;
this.entry = null;
this.page = null; this.page = null;
this.entryLoaded = false; this.entryLoaded = false;