Browse Source

Fix reducer error when conversation has no last status in web UI (#9173)

Fix #9170
pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
b9d0d209cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/reducers/conversations.js

+ 1
- 1
app/javascript/mastodon/reducers/conversations.js View File

@ -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 => {

Loading…
Cancel
Save