From 4e3f57533b6900848c1223642072074691c389e0 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Thu, 8 Aug 2019 12:01:01 +0200 Subject: [PATCH] MOBILE-1927 calendar: Fix offline events not displayed in day view --- src/addon/calendar/pages/day/day.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon/calendar/pages/day/day.ts b/src/addon/calendar/pages/day/day.ts index a8c1e90a1..f5a302997 100644 --- a/src/addon/calendar/pages/day/day.ts +++ b/src/addon/calendar/pages/day/day.ts @@ -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; }