diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js index 0f6ec912382f..14930a0c3ab1 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js @@ -190,7 +190,7 @@ function ComposerWithSuggestions({ // Reset suggestions when an emoji is replaced and the selection is not changed. // More info issue #27156 - if (selection.end === newSelectionPosition){ + if (selection.end === newSelectionPosition && suggestionsRef.current){ suggestionsRef.current.resetSuggestions(); }