Skip to content

Commit

Permalink
fix: only get visible fields when exporting grid data #35940 (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRelief committed Sep 7, 2023
1 parent 063391d commit 2d76aa8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libs/safe/src/lib/components/ui/core-grid/core-grid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1200,10 +1200,12 @@ export class SafeCoreGridComponent
.map((x: any) => ({
name: x.field,
title: x.title,
subFields: x.subFields.map((y: any) => ({
name: y.name,
title: y.title,
})),
subFields: x.subFields
.filter((y: any) => !y.hidden)
.map((y: any) => ({
name: y.name,
title: y.title,
})),
})),
}),
// we export ALL fields of the grid ( including hidden columns )
Expand Down

0 comments on commit 2d76aa8

Please sign in to comment.