Faça da seguinte maneira, abrindo chave dentro da função e fazendo a atribuição de forma manual.
case 'setTotalEstoque':
return {
...state,
arrayFavorito: state.contents.map((content, i) => {
if(i === action.payload.indice) {
content.items[0].sellers[0].commertialOffer.Price= action.payload.price,
content.items[0].sellers[0].commertialOffer.ListPrice= action.payload.listPrice,
content.items[0].sellers[0].commertialOffer.AvailableQuantity= item.AvailableQuantity,
}
return content;
}
)
}
###Edição: Melhorando a organização
case 'setTotalEstoque':
const arrayFavorito = state.contents.map((content, i) => {
if(i === action.payload.indice) {
content.items[0].sellers[0].commertialOffer.Price= action.payload.price,
content.items[0].sellers[0].commertialOffer.ListPrice= action.payload.listPrice,
content.items[0].sellers[0].commertialOffer.AvailableQuantity= action.payload.AvailableQuantity,
}
return content;
});
return {
...state,
arrayFavorito
}
case 'setTotalEstoque':
const arrayFavorito = state.contents.map((content, i) => {
if(i === action.payload.indice) {
content.items[0].sellers[0].commertialOffer.Price= action.payload.price,
content.items[0].sellers[0].commertialOffer.ListPrice= action.payload.listPrice,
content.items[0].sellers[0].commertialOffer.AvailableQuantity= item.AvailableQuantity,
}
return content;
});
return {
...state,
arrayFavorito
}