Skip to content
Snippets Groups Projects
Commit 208b2ed1 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Additional check to make console shut up

parent e88bb1a2
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -121,7 +121,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
const timelineObject = state.timelines[timeline]
const maxNew = statuses.length > 0 ? maxBy(statuses, 'id').id : 0
const older = maxNew < timelineObject.maxId
const older = timeline && maxNew < timelineObject.maxId
if (timeline && !noIdUpdate && statuses.length > 0 && !older) {
timelineObject.maxId = maxNew
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment