Skip to content

Commit

Permalink
Merge pull request Expensify#51973 from software-mansion-labs/fix/com…
Browse files Browse the repository at this point in the history
…poser-crash

Fix App crashes after submitting expense to user or creating a new room
  • Loading branch information
flodnv authored Nov 4, 2024
2 parents 3adb771 + 7cdd42f commit 945421d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ function ComposerWithSuggestions(
const [modal] = useOnyx(ONYXKEYS.MODAL);
const [preferredSkinTone = CONST.EMOJI_DEFAULT_SKIN_TONE] = useOnyx(ONYXKEYS.PREFERRED_EMOJI_SKIN_TONE, {selector: EmojiUtils.getPreferredSkinToneIndex});
const [editFocused] = useOnyx(ONYXKEYS.INPUT_FOCUSED);
const [parentReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${parentReportID}`, {canEvict: false, initWithStoredValues: false});
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const [parentReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${parentReportID || '-1'}`, {canEvict: false, initWithStoredValues: false});

const lastTextRef = useRef(value);
useEffect(() => {
Expand Down

0 comments on commit 945421d

Please sign in to comment.