Skip to content

Commit

Permalink
fix: remove forced types
Browse files Browse the repository at this point in the history
  • Loading branch information
lhguerra committed Dec 13, 2024
1 parent e4ceb12 commit 232b899
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/spa/src/components/charts/LineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LegendAnchor, LegendDirection } from "@nivo/legends"
import { Box } from "@mui/material"

export const normalizeCfdData = (data: Serie[]): Serie[] =>
data.map((step, stepIndex) => ({
data?.map((step, stepIndex) => ({
...step,
data: step.data?.map((dot, index) => {
const previousY: number =
Expand All @@ -15,7 +15,7 @@ export const normalizeCfdData = (data: Serie[]): Serie[] =>
y: newY,
}
}),
}))
})) || []

export type LineChartProps = {
data: Serie[]
Expand Down
18 changes: 9 additions & 9 deletions app/spa/src/pages/Projects/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ const Statistics = () => {
const leadTimeAmplitudeVariationDataGraph = [
{
id: "Amplitude Total do Lead Time",
data: totalLeadTimeMonthRange!,
data: totalLeadTimeMonthRange || [],
},
{
id: "Lead Time menor",
data: shorterLeadTimeMonth!,
data: shorterLeadTimeMonth || [],
},
{
id: "Lead Time maior",
data: longerLeadTimeMonth!,
data: longerLeadTimeMonth || [],
},
]

Expand Down Expand Up @@ -106,15 +106,15 @@ const Statistics = () => {
const leadTimeAmplitudeHistogramDataGraph = [
{
id: "Amplitude Total",
data: amplitudeTotalHistogram!,
data: amplitudeTotalHistogram || [],
},
{
id: "Bin Min",
data: amplitudeBinMinHistogram!,
data: amplitudeBinMinHistogram || [],
},
{
id: "Bin Max",
data: amplitudeBinMaxHistogram!,
data: amplitudeBinMaxHistogram || [],
},
]

Expand Down Expand Up @@ -148,15 +148,15 @@ const Statistics = () => {
const leadTimeAmplitudeInterquartileDataGraph = [
{
id: "Amplitude Total",
data: amplitudeTotalInterquartile!,
data: amplitudeTotalInterquartile || [],
},
{
id: "Percentil 25",
data: amplitudePercentile25Interquartile!,
data: amplitudePercentile25Interquartile || [],
},
{
id: "Percentil 75",
data: amplitudePercentile75Interquartile!,
data: amplitudePercentile75Interquartile || [],
},
]

Expand Down

0 comments on commit 232b899

Please sign in to comment.