Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(report-row): check if the argument is defined before calling `sav…
Browse files Browse the repository at this point in the history
…e` function
  • Loading branch information
MitanOmar committed Jan 4, 2024
1 parent e98f797 commit 0bc1c98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/report-row/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export default class ReportRowComponent extends Component {
*/
@dropTask
*save(changeset) {
yield this.args.onSave(changeset);
if (this.args.onSave) {
yield this.args.onSave(changeset);
}
}
/**
* Delete the row
Expand Down

0 comments on commit 0bc1c98

Please sign in to comment.