1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 13:45:02 +00:00

Fix hasDifferentItems

This commit is contained in:
Mark McDowall 2020-02-28 11:15:01 -08:00
parent 746da69070
commit d7967e3e1b

View file

@ -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;