From 28eaab170a238aa083ed5887887152e6ea7c3262 Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Fri, 19 Jun 2020 11:11:33 +0200 Subject: [PATCH] fix corner condition --- src/components/Layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout.js b/src/components/Layout.js index 94f75aa..0509a95 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -70,7 +70,7 @@ class Dashboard extends React.Component { let ptr = idx - 1 while ( - ptr > 0 && + ptr >= 0 && (events[idx].datetime).getTime() === (events[ptr].datetime).getTime() ) { matchedEvents.push(events[ptr])