Skip to content

Commit

Permalink
prevent null oldDot action from crashing app
Browse files Browse the repository at this point in the history
  • Loading branch information
Julesssss committed Oct 28, 2024
1 parent 4d65cc7 commit f1eb316
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,9 @@ function isOldDotLegacyAction(action: OldDotReportAction | PartialReportAction):
}

function isOldDotReportAction(action: ReportAction | OldDotReportAction) {
if (!action || !action.actionName) {
return false;
}
return [
CONST.REPORT.ACTIONS.TYPE.CHANGE_FIELD,
CONST.REPORT.ACTIONS.TYPE.CHANGE_POLICY,
Expand Down

0 comments on commit f1eb316

Please sign in to comment.