Skip to content

Commit

Permalink
fix line graph type
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Dec 18, 2024
1 parent e1e61bd commit 3527b1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/app/admin/admin-alert-counts/AlertCountLineGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ import {
import Spinner from '../../loading/components/Spinner'
import { Time } from '../../util/Time'

type DataType = React.ComponentProps<typeof LineChart>['data']

interface AlertCountLineGraphProps {
data: (typeof LineChart.defaultProps)['data']
data: DataType
loading: boolean
unit: DateTimeUnit
}
Expand Down Expand Up @@ -116,7 +118,7 @@ export default function AlertCountLineGraph(
}

function flattenData(
data: (typeof LineChart.defaultProps)['data'],
data: DataType,
): Array<{ [key: string]: number | string }> {
const dateMap: { [key: string]: { [key: string]: number | string } } = {}

Expand Down

0 comments on commit 3527b1b

Please sign in to comment.