Skip to content

Commit 35778ae

Browse files
Show cloe data for more than lates mission
1 parent 63ce1bb commit 35778ae

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

frontend/src/pages/DataViewPage/DataView.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,17 +230,9 @@ export const DataView = ({
230230
return <TextAsImage isLargeImage={true} text={'No inspection could be found'} />
231231
}
232232

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-
241233
return (
242234
<DataViewContent
243-
inspectionData={filteredInspectionData}
235+
inspectionData={data}
244236
numberOfDaysOfData={numberOfDaysOfData}
245237
setNumberOfDaysOfData={setNumberOfDaysOfData}
246238
pageTitle={pageTitle}

0 commit comments

Comments
 (0)