Skip to content

Commit

Permalink
Update src/pages/home/report/ReportActionItemMessageEdit.js
Browse files Browse the repository at this point in the history
Co-authored-by: Youssef Lourayad <[email protected]>
  • Loading branch information
dukenv0307 and youssef-lr authored Aug 8, 2023
1 parent a1d9932 commit 77d7f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItemMessageEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function ReportActionItemMessageEdit(props) {
Report.saveReportActionDraft(report.parentReportID, props.action.reportActionID, trimmedNewDraft);
}
}
// Updating in parent message cause child draft message to change
// Updates in the parent message should cause the child draft message to change
if (props.action.childReportID) {
if (lodashGet(props.drafts, [`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_DRAFTS}${props.action.childReportID}_${props.action.reportActionID}`], undefined)) {
Report.saveReportActionDraft(props.action.childReportID, props.action.reportActionID, trimmedNewDraft);
Expand Down

0 comments on commit 77d7f01

Please sign in to comment.