Skip to content

Commit

Permalink
Merge pull request Expensify#51566 from Expensify/jules-fixOldDotActi…
Browse files Browse the repository at this point in the history
…onCrash

[NO QA] Prevent HybridApp crash when action without actionName is copied to clipboard
  • Loading branch information
mountiny authored Oct 28, 2024
2 parents 4d65cc7 + f1eb316 commit 3383125
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 3383125

Please sign in to comment.