From 0bc1c987b006f9b9f947b8fc7ea6dbe1833ed50d Mon Sep 17 00:00:00 2001 From: Mitan Omar Date: Thu, 4 Jan 2024 13:44:01 +0100 Subject: [PATCH] fix(report-row): check if the argument is defined before calling `save` function --- app/components/report-row/component.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/report-row/component.js b/app/components/report-row/component.js index 1d8f9dbb5..2287894e6 100644 --- a/app/components/report-row/component.js +++ b/app/components/report-row/component.js @@ -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