From 96f50e7c4791aee4bd706808830f6fc16b979eb9 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Fri, 20 Jan 2023 16:03:14 +0100 Subject: [PATCH] fix build issues --- components/Issues.tsx | 3 ++- components/PullRequests.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/Issues.tsx b/components/Issues.tsx index 303c132..b5b7388 100644 --- a/components/Issues.tsx +++ b/components/Issues.tsx @@ -33,6 +33,7 @@ events as ( SELECT * FROM github_events WHERE repo_name like '${filters.org}/%' and event_type = 'IssuesEvent' + order by created_at asc ), timeseries as ( WITH @@ -99,7 +100,7 @@ FORMAT JSON`, if (!data) return
Loading...
const chartData = data.data - const max = parseInt(findMax(chartData, 'tally')) + const max = parseInt(toString(findMax(chartData, 'tally'))) return ( diff --git a/components/PullRequests.tsx b/components/PullRequests.tsx index ba1f14c..5c50a72 100644 --- a/components/PullRequests.tsx +++ b/components/PullRequests.tsx @@ -33,6 +33,7 @@ events as ( SELECT * FROM github_events WHERE repo_name like '${filters.org}/%' and event_type = 'PullRequestEvent' + order by created_at asc ), timeseries as ( WITH @@ -99,7 +100,7 @@ FORMAT JSON`, if (!data) return
Loading...
const chartData = data.data - const max = parseInt(findMax(chartData, 'tally')) + const max = parseInt(toString(findMax(chartData, 'tally'))) return (