From 0d6ecfdbdfea624a3825f65f95140742962d0a2e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 16 Dec 2017 20:21:50 +0000 Subject: [PATCH] Calendar: remove the unneccesary events sort. --- src/components/Calendar.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/Calendar.tsx b/src/components/Calendar.tsx index 6d72673..371b4af 100644 --- a/src/components/Calendar.tsx +++ b/src/components/Calendar.tsx @@ -25,16 +25,6 @@ class Calendar extends React.PureComponent { } render() { - let entries = this.props.entries.sort((a, b) => { - if (a.summary < b.summary) { - return -1; - } else if (a.summary > b.summary) { - return 1; - } else { - return 0; - } - }); - function eventPropGetter(event: EventType) { return { style: { @@ -51,7 +41,7 @@ class Calendar extends React.PureComponent { return (
{ this.props.onItemClick(event); }}