Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
b9d0d209
Unverified
Commit
b9d0d209
authored
6 years ago
by
Eugen Rochko
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix reducer error when conversation has no last status in web UI (#9173)
Fix #9170
parent
ce2ee68b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/javascript/mastodon/reducers/conversations.js
+1
-1
app/javascript/mastodon/reducers/conversations.js
with
1 addition
and
1 deletion
+1
-1
app/javascript/mastodon/reducers/conversations.js
+
1
-
1
View file @
b9d0d209
...
...
@@ -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
=>
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets