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 666168a commit a1d9932
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 @@ -240,7 +240,7 @@ function ReportActionItemMessageEdit(props) {

const report = ReportUtils.getReport(props.reportID);

// Updating in child message cause parent draft message to change
// Updates in child message should cause the parent draft message to change
if (report.parentReportActionID && lodashGet(props.action, 'childType', '') === CONST.REPORT.TYPE.CHAT) {
if (lodashGet(props.drafts, [`${ONYXKEYS.COLLECTION.REPORT_ACTIONS_DRAFTS}${report.parentReportID}_${props.action.reportActionID}`], undefined)) {
Report.saveReportActionDraft(report.parentReportID, props.action.reportActionID, trimmedNewDraft);
Expand Down

0 comments on commit a1d9932

Please sign in to comment.