Skip to content

Commit

Permalink
Fix crash on switch back to online
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki committed Nov 29, 2024
1 parent b8a658a commit 25bca0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/LHNOptionsList/OptionRowLHN.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ function OptionRowLHN({reportID, isFocused = false, onSelectRow = () => {}, opti
// Prevent composer blur on left click
event.preventDefault();
}}
testID={optionItem.reportID}
// reportID may be a number contrary to the type definition
testID={typeof optionItem.reportID === 'number' ? String(optionItem.reportID) : optionItem.reportID}
onSecondaryInteraction={(event) => {
showPopover(event);
// Ensure that we blur the composer when opening context menu, so that only one component is focused at a time
Expand Down

0 comments on commit 25bca0e

Please sign in to comment.