Refactor after review

This commit is contained in:
Magdalena Markusik 2021-05-13 12:27:39 +02:00
parent 232bfcc139
commit a82d513dec

View file

@ -300,7 +300,7 @@ export const ProductUpdate: React.FC<ProductUpdateProps> = ({ id, params }) => {
const [updateChannels, updateChannelsOpts] = useProductChannelListingUpdate({
onCompleted: data => {
if (!!data.productChannelListingUpdate.errors.length) {
data.productChannelListingUpdate.errors.map(error =>
data.productChannelListingUpdate.errors.forEach(error =>
notify({
status: "error",
text: getProductErrorMessage(error, intl)