There was an error while loading. Please reload this page.
1 parent 63ce1bb commit 35778aeCopy full SHA for 35778ae
1 file changed
frontend/src/pages/DataViewPage/DataView.tsx
@@ -230,17 +230,9 @@ export const DataView = ({
230
return <TextAsImage isLargeImage={true} text={'No inspection could be found'} />
231
}
232
233
- // Fetches only the latest inspection data per tag
234
- const filteredInspectionData = data.reduce((accumulator: InspectionData[], item) => {
235
- const index = accumulator.findIndex((i) => i.tag === item.tag)
236
- if (index >= 0) accumulator[index] = item
237
- else accumulator.push(item)
238
- return accumulator
239
- }, [])
240
-
241
return (
242
<DataViewContent
243
- inspectionData={filteredInspectionData}
+ inspectionData={data}
244
numberOfDaysOfData={numberOfDaysOfData}
245
setNumberOfDaysOfData={setNumberOfDaysOfData}
246
pageTitle={pageTitle}
0 commit comments