fix broken project overview chart

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-23 20:41:35 +01:00
parent 6bcf05de6e
commit ed5c6f994e

View File

@@ -7,6 +7,10 @@ export function ChartSSR({
dots?: boolean;
data: { value: number; date: Date }[];
}) {
if (data.length === 0) {
return null;
}
const xScale = d3
.scaleTime()
.domain([data[0]!.date, data[data.length - 1]!.date])