Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwicopple authored Jan 20, 2023
1 parent 00cc025 commit 96f50e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/Issues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -99,7 +100,7 @@ FORMAT JSON`,
if (!data) return <div>Loading...</div>

const chartData = data.data
const max = parseInt(findMax(chartData, 'tally'))
const max = parseInt(toString(findMax(chartData, 'tally')))

return (
<Card>
Expand Down
3 changes: 2 additions & 1 deletion components/PullRequests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -99,7 +100,7 @@ FORMAT JSON`,
if (!data) return <div>Loading...</div>

const chartData = data.data
const max = parseInt(findMax(chartData, 'tally'))
const max = parseInt(toString(findMax(chartData, 'tally')))

return (
<Card>
Expand Down

0 comments on commit 96f50e7

Please sign in to comment.