Skip to content

Commit

Permalink
25745-Fix NoW Resbumit Bug (#716)
Browse files Browse the repository at this point in the history
fix resbumit bug

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>
  • Loading branch information
ArwenQin authored Feb 5, 2025
1 parent 3608c70 commit 75cfd95
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-filings-ui",
"version": "7.4.16",
"version": "7.4.17",
"private": true,
"appName": "Filings UI",
"sbcName": "SBC Common Components",
Expand Down
9 changes: 7 additions & 2 deletions src/views/NoticeOfWithdrawal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,13 @@ export default class NoticeOfWithdrawal extends Mixins(CommonMixin, DateMixin, F
const filing = Object.assign({}, header, business, data)
try {
let ret
// filing id is 0, so create a new filing
ret = await LegalServices.createFiling(this.getIdentifier, filing, isDraft)
if (this.filingId > 0) {
// we have a filing id, so update an existing filing
ret = await LegalServices.updateFiling(this.getIdentifier, filing, this.filingId, isDraft)
} else {
// filing id is 0, so create a new filing
ret = await LegalServices.createFiling(this.getIdentifier, filing, isDraft)
}
return ret
} catch (error: any) {
// save errors or warnings, if any
Expand Down

0 comments on commit 75cfd95

Please sign in to comment.