mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix reducer error when conversation has no last status in web UI (#9173)
Fix #9170
This commit is contained in:
parent
ce2ee68b64
commit
b9d0d209cd
@ -21,7 +21,7 @@ const conversationToMap = item => ImmutableMap({
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
unread: item.unread,
|
unread: item.unread,
|
||||||
accounts: ImmutableList(item.accounts.map(a => a.id)),
|
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 => {
|
const updateConversation = (state, item) => state.update('items', list => {
|
||||||
|
Loading…
Reference in New Issue
Block a user