Skip to content

Commit

Permalink
Merge pull request #49 from welldone-software/revert-44-master
Browse files Browse the repository at this point in the history
Revert "Fix the bug when upserting items without any Added items. It'll retur…"
  • Loading branch information
vzaidman authored Apr 8, 2019
2 parents bbbb464 + 7b37b50 commit 95b2566
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function upsertItemsById(arr, updatedItems, idSelector = defaultI
})

if (updatedItemsMap.size === 0) {
return result
return arr
}

updatedItemsMap.forEach(item => result.push(item))
Expand Down

0 comments on commit 95b2566

Please sign in to comment.