Skip to content

Commit 3383125

Browse files
authored
Merge pull request #51566 from Expensify/jules-fixOldDotActionCrash
[NO QA] Prevent HybridApp crash when action without actionName is copied to clipboard
2 parents 4d65cc7 + f1eb316 commit 3383125

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libs/ReportActionsUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,9 @@ function isOldDotLegacyAction(action: OldDotReportAction | PartialReportAction):
12271227
}
12281228

12291229
function isOldDotReportAction(action: ReportAction | OldDotReportAction) {
1230+
if (!action || !action.actionName) {
1231+
return false;
1232+
}
12301233
return [
12311234
CONST.REPORT.ACTIONS.TYPE.CHANGE_FIELD,
12321235
CONST.REPORT.ACTIONS.TYPE.CHANGE_POLICY,

0 commit comments

Comments
 (0)