Typo: Pubsweet Client
There is a type in pubsweet-client on the reducer of the collections. The following method should be fixed
function updateCollection() {
const index = getCollectionIndex()
collections[index] = { ...collections[index], ...action.update }
return collections
}
function updateCollection() {
const index = getCollectionIndex()
collections[index] = { ...collections[index], ...action.updated }
return collections
}
The correction is to change from ...action.update
into ...action.updated
As this wasn't detected by the tests, might the typo exists also in the tests