Skip to content

Commit

Permalink
Merge branch 'main' into 25190_Court_Order_Filing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajandeep98 authored Feb 6, 2025
2 parents 5092de7 + 75cfd95 commit aff8ca9
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 aff8ca9

Please sign in to comment.