Skip to content

Commit

Permalink
Merge pull request #51973 from software-mansion-labs/fix/composer-crash
Browse files Browse the repository at this point in the history
Fix App crashes after submitting expense to user or creating a new room

(cherry picked from commit 945421d)

(CP triggered by Beamanator)
  • Loading branch information
flodnv authored and OSBotify committed Nov 5, 2024
1 parent b207d01 commit 962689c
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 962689c

Please sign in to comment.