Skip to content

Commit

Permalink
fix broken submit based on #896
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumsnChocolate committed Nov 5, 2024
1 parent 8e9cde7 commit 4f53b89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/debit/collections/collection/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default class CollectionEditController extends EditController {
}

@action
async submit() {
async submit(event) {
event.preventDefault();

Check warning on line 30 in app/controllers/debit/collections/collection/edit.js

View check run for this annotation

Codecov / codecov/patch

app/controllers/debit/collections/collection/edit.js#L30

Added line #L30 was not covered by tests
this.errorMessage = null;
try {
await this.model.saveWithTransactions();
Expand Down

0 comments on commit 4f53b89

Please sign in to comment.