Refactor after review
This commit is contained in:
parent
232bfcc139
commit
a82d513dec
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue