From 7d44e8411198f7823c910ca1be7c4092ad1bb898 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 28 Sep 2020 14:57:15 -0500 Subject: [PATCH] Timelines: fix existingQueuedStatus bug --- app/soapbox/reducers/timelines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/reducers/timelines.js b/app/soapbox/reducers/timelines.js index 3c514849a..c86376406 100644 --- a/app/soapbox/reducers/timelines.js +++ b/app/soapbox/reducers/timelines.js @@ -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) {