mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-18 21:35:27 -04:00
Fix hasDifferentItems
This commit is contained in:
@@ -13,7 +13,7 @@ function hasDifferentItems(prevItems, currentItems, idProp = 'id') {
|
||||
currentItemIds.add(currentItem[idProp]);
|
||||
});
|
||||
|
||||
return prevItems.every((prevItem) => currentItemIds.has(prevItem[idProp]));
|
||||
return prevItems.some((prevItem) => !currentItemIds.has(prevItem[idProp]));
|
||||
}
|
||||
|
||||
export default hasDifferentItems;
|
||||
|
||||
Reference in New Issue
Block a user