MOBILE-3068 notes: Fix error displayed when creating offline

main
Dani Palou 2019-08-23 14:07:46 +02:00
parent 58591bdaed
commit 89a385b08b
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ export class AddonNotesListComponent implements OnInit, OnDestroy {
this.notesLoaded = false;
}
this.refreshNotes(true);
this.refreshNotes(false);
} else if (data && data.type && data.type != this.type) {
this.type = data.type;
this.typeChanged();
@ -209,7 +209,7 @@ export class AddonNotesListComponent implements OnInit, OnDestroy {
this.notesProvider.deleteNote(note, this.courseId).then(() => {
this.showDelete = false;
this.refreshNotes(true);
this.refreshNotes(false);
this.domUtils.showToast('addon.notes.eventnotedeleted', true, 3000);
}).catch((error) => {