From d7967e3e1ba3c36cc3a6ba1a89057a50a3aa072b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 28 Feb 2020 11:15:01 -0800 Subject: [PATCH] Fix hasDifferentItems --- frontend/src/Utilities/Object/hasDifferentItems.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Utilities/Object/hasDifferentItems.js b/frontend/src/Utilities/Object/hasDifferentItems.js index 826aab7c3..d3c0046e4 100644 --- a/frontend/src/Utilities/Object/hasDifferentItems.js +++ b/frontend/src/Utilities/Object/hasDifferentItems.js @@ -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;