From 0136ccde1b86bdff74d0f3d77c8ebe80c1c8590b Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 4 Oct 2023 12:54:43 +0600 Subject: [PATCH] Fix removed reccuring instances (#3786) Signed-off-by: Denis Bykhov --- plugins/calendar/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/src/utils.ts b/plugins/calendar/src/utils.ts index e0cb9e80ee..bfc233d7ef 100644 --- a/plugins/calendar/src/utils.ts +++ b/plugins/calendar/src/utils.ts @@ -322,7 +322,7 @@ export function getAllEvents (events: Event[], from: Timestamp, to: Timestamp): ...base, ...recurData, ...instances.filter((p) => { - return from <= p.dueDate && p.date <= to + return from <= p.dueDate && p.date <= to && p.isCancelled !== true }) ] res.sort((a, b) => a.date - b.date)