Skip to content

Commit

Permalink
Fix reducer error when conversation has no last status in web UI (mas…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and rtucker committed Oct 31, 2018
1 parent b8c9f48 commit cfe8d1f
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 cfe8d1f

Please sign in to comment.