Fix error where removePreview is called without a conversationId

This commit is contained in:
Josh Perez 2023-01-05 16:55:33 -05:00 committed by GitHub
parent 487bb58880
commit c65a7d0a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1275,7 +1275,7 @@ export function reducer(
})); }));
} }
if (action.type === REMOVE_LINK_PREVIEW) { if (action.type === REMOVE_LINK_PREVIEW && action.payload.conversationId) {
return updateComposerState(state, action, () => ({ return updateComposerState(state, action, () => ({
linkPreviewLoading: false, linkPreviewLoading: false,
linkPreviewResult: undefined, linkPreviewResult: undefined,