mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
fixed sorting of fields in excel export
This commit is contained in:
parent
fe90770999
commit
ba302dcd63
@ -26,6 +26,8 @@ Template for next version
|
||||
|
||||
### Fixed
|
||||
|
||||
- sorting of fields in excel export
|
||||
|
||||
### Security
|
||||
|
||||
## [1.0.2] - 2022-03-13
|
||||
|
||||
@ -37,6 +37,7 @@ export const ExportSubmissionAction: React.FC<Props> = (props) => {
|
||||
workbook.modified = new Date()
|
||||
|
||||
const orderedFields = form.data.form.fields
|
||||
.map(field => field)
|
||||
.sort((a, b) => (a.idx ?? 0) - (b.idx ?? 0))
|
||||
|
||||
// TODO should go through deleted fields as well to have a complete overview!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user