Timelines: fix existingQueuedStatus bug

This commit is contained in:
Alex Gleason 2020-09-28 14:57:15 -05:00
parent 55aeb41a49
commit 7d44e84111
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -89,7 +89,7 @@ const updateTimelineQueue = (state, timeline, statusId) => {
const listedStatuses = state.getIn([timeline, 'items'], ImmutableList());
const totalQueuedItemsCount = state.getIn([timeline, 'totalQueuedItemsCount'], 0);
let alreadyExists = queuedStatuses.find(existingQueuedStatus => existingQueuedStatus.get('id') === statusId);
let alreadyExists = queuedStatuses.find(existingQueuedStatus => existingQueuedStatus === statusId);
if (!alreadyExists) alreadyExists = listedStatuses.find(existingListedStatusId => existingListedStatusId === statusId);
if (alreadyExists) {