Fix error where removePreview is called without a conversationId
This commit is contained in:
parent
487bb58880
commit
c65a7d0a14
1 changed files with 1 additions and 1 deletions
|
@ -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, () => ({
|
||||
linkPreviewLoading: false,
|
||||
linkPreviewResult: undefined,
|
||||
|
|
Loading…
Reference in a new issue