MOBILE-1927 calendar: Fix offline events not displayed in day view

main
Albert Gasset 2019-08-08 12:01:01 +02:00
parent 2b72b65ba5
commit 4e3f57533b
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ export class AddonCalendarDayPage implements OnInit, OnDestroy {
protected mergeEvents(): any[] {
this.hasOffline = false;
if (!this.offlineEditedEventsIds.length && !this.deletedEvents.length) {
if (!Object.keys(this.offlineEvents).length && !this.deletedEvents.length) {
// No offline events, nothing to merge.
return this.onlineEvents;
}