Skip to content

Commit

Permalink
Add draftNumber to Corrections payload (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimak1 authored May 23, 2024
1 parent 901768d commit 843745c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "3.1.32",
"version": "3.1.33",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
3 changes: 3 additions & 0 deletions ppr-ui/src/composables/mhrRegistration/useMhrCorrections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ export const useMhrCorrections = () => {
attentionReference: mhrState.attentionReference || '',
documentId: mhrState.documentId,
documentType: getRegistrationType.value?.registrationTypeAPI,
...(mhrState.draftNumber && {
draftNumber: mhrState.draftNumber
}),
submittingParty: mhrState.submittingParty,
...(getCorrectionsList().includes('status') && {
status: getMhrStatusType.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface AdminRegistrationIF {
attentionReference?: string
documentType: APIRegistrationTypes
documentId: string
draftNumber?: string
submittingParty: SubmittingPartyIF
status?: MhApiStatusTypes
location?: MhrRegistrationHomeLocationIF
Expand Down

0 comments on commit 843745c

Please sign in to comment.