From 3c4934e2077065263e7f8e7e711c407f0d678581 Mon Sep 17 00:00:00 2001 From: Tobias Andersen Date: Tue, 6 Feb 2018 20:03:15 +0100 Subject: [PATCH] fix(dayViewLayout): container event check --- src/utils/dayViewLayout/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dayViewLayout/index.js b/src/utils/dayViewLayout/index.js index 595e65891..5461771d9 100644 --- a/src/utils/dayViewLayout/index.js +++ b/src/utils/dayViewLayout/index.js @@ -59,7 +59,7 @@ function getStyledEvents({ events, ...props }) { const event = eventsInRenderOrder[i] // Check if this event can go into a container event. - const container = containerEvents.find(c => c.endSlot >= event.startSlot) + const container = containerEvents.find(c => c.endSlot > event.startSlot) // Couldn't find a container — that means this event is a container. if (!container) {