Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#2598 from JohnDuprey/dev
Browse files Browse the repository at this point in the history
fix flatten/format functions
  • Loading branch information
JohnDuprey authored Jun 25, 2024
2 parents 6d7b797 + ca4f768 commit ddf4e54
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/tables/CippTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,7 @@ export default function CippTable({
})
return Array.isArray(exportData) && exportData.length > 0
? exportData.map((obj) => {
const flattenedObj = flatten(obj)
return applyFormatter(flattenedObj)
return flatten(applyFormatter(obj))
})
: []
}
Expand All @@ -695,8 +694,7 @@ export default function CippTable({
// Adjusted dataFlat processing to include formatting
let dataFlat = Array.isArray(data)
? data.map((item) => {
const flattenedItem = flatten(item)
return applyFormatter(flattenedItem)
return flatten(applyFormatter(item))
})
: []
if (!disablePDFExport) {
Expand Down

0 comments on commit ddf4e54

Please sign in to comment.