Skip to content

Commit

Permalink
Access the actionName safely
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Oct 6, 2023
1 parent 8f319a3 commit cf9a5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1660,8 +1660,8 @@ function shouldShowReportActionNotification(reportID, action = null, isRemote =
}

// Only show notifications for supported types of report actions
if (action && !ReportActionsUtils.isNotifiableReportAction(action)) {
Log.info(`${tag} No notification because this action type is not supported`, false, {actionName: action.actionName});
if (!ReportActionsUtils.isNotifiableReportAction(action)) {
Log.info(`${tag} No notification because this action type is not supported`, false, {actionName: lodashGet(action, 'actionName')});
return false;
}

Expand Down

0 comments on commit cf9a5d5

Please sign in to comment.