Skip to content

Commit

Permalink
Fix Sections count (#1926)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Jun 10, 2024
1 parent a0a10d2 commit bde3d19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ppr-ui/src/composables/mhrRegistration/useMhrCorrections.ts
Original file line number Diff line number Diff line change
@@ -363,8 +363,13 @@ export const useMhrCorrections = () => {
...mhrState.description.baseInformation,
year: Number(mhrState.description.baseInformation.year) // Cast to number to support legacy strings
},
sectionCount: mhrState.description.sections.filter(
section => section?.action !== ActionTypes.REMOVED
).length,
sections: [
...mhrState.description.sections.filter(section => section?.action !== ActionTypes.REMOVED)
...mhrState.description.sections.filter(
section => section?.action !== ActionTypes.REMOVED
)
]
}
}),

0 comments on commit bde3d19

Please sign in to comment.