Skip to content

Commit

Permalink
Merge pull request #3741 from Tangerine-Community/fix/sp1-form-edit-w…
Browse files Browse the repository at this point in the history
…ith-user-profile-and-tablet-name

Remove the saveComplete subject; it causes problems
  • Loading branch information
esurface authored Oct 18, 2024
2 parents 0b8139e + ee35474 commit 49af6de
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<app-breadcrumb [title]="title" [breadcrumbs]="breadcrumbs"></app-breadcrumb>
<app-tangy-forms-player unlockFormResponses="true" #formPlayer></app-tangy-forms-player>
<app-tangy-forms-player [skipSaving]="true" #formPlayer></app-tangy-forms-player>
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export class GroupUploadsEditComponent implements OnInit {
// at this point the form has been locked by tangy-form
// form player will ignore the save unless we force it to save
await this.formPlayer.saveResponse(response, true)
})
this.formPlayer.$saveComplete.subscribe(async () => {
this.router.navigate([`../`], { relativeTo: this.route })
})
await this.formPlayer.render(true, {disableComponents:['TANGY-GPS']})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export class TangyFormsPlayerComponent {
$afterSubmit = new Subject()
$resubmit = new Subject()
$afterResubmit = new Subject()
$saveComplete = new Subject()
rendered = false
groupId: string

Expand Down Expand Up @@ -239,8 +238,6 @@ export class TangyFormsPlayerComponent {
state = await this.tangyFormService.saveResponse(stateDoc)
}
this.response = state

this.$saveComplete.next(true)
}

print() {
Expand Down

0 comments on commit 49af6de

Please sign in to comment.