Skip to content

Commit

Permalink
Fix reducer error when conversation has no last status in web UI (#9173)
Browse files Browse the repository at this point in the history
Fix #9170
  • Loading branch information
Gargron authored Oct 30, 2018
1 parent ce2ee68 commit b9d0d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/reducers/conversations.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const conversationToMap = item => ImmutableMap({
id: item.id,
unread: item.unread,
accounts: ImmutableList(item.accounts.map(a => a.id)),
last_status: item.last_status.id,
last_status: item.last_status ? item.last_status.id : null,
});

const updateConversation = (state, item) => state.update('items', list => {
Expand Down

0 comments on commit b9d0d20

Please sign in to comment.