diff --git a/src/js/background/backgroundLogic.js b/src/js/background/backgroundLogic.js index 4f55714..f18a1ce 100644 --- a/src/js/background/backgroundLogic.js +++ b/src/js/background/backgroundLogic.js @@ -288,8 +288,8 @@ const backgroundLogic = { let newIndex = nearestFollowingIndex < afterIds.length ? sortedIds.indexOf(afterIds[nearestFollowingIndex]) : -1; if (newIndex < 0) newIndex = beforeIds.length; - // Reject already moved tabs. let oldIndices = movingIds.map(id => sortedIds.indexOf(id)); + // Reject already removed tabs. movingIds = movingIds.filter((id, index) => oldIndices[index] > -1); if (movingIds.length === 0) continue;