Fix removed reccuring instances (#3786)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-10-04 12:54:43 +06:00 committed by GitHub
parent c6065d094a
commit 0136ccde1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)