Additional check to make console shut up
This commit is contained in:
parent
e88bb1a23e
commit
208b2ed125
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
||||||
const timelineObject = state.timelines[timeline]
|
const timelineObject = state.timelines[timeline]
|
||||||
|
|
||||||
const maxNew = statuses.length > 0 ? maxBy(statuses, 'id').id : 0
|
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) {
|
if (timeline && !noIdUpdate && statuses.length > 0 && !older) {
|
||||||
timelineObject.maxId = maxNew
|
timelineObject.maxId = maxNew
|
||||||
|
|
Loading…
Reference in a new issue