docs: fixes following QA testing (#9690)

This commit is contained in:
Shahed Nasser
2024-10-22 18:20:21 +03:00
committed by GitHub
parent b2122c4073
commit 731309e87a
40 changed files with 70 additions and 66 deletions
@@ -147,7 +147,7 @@ import { Modules } from "@medusajs/framework/utils"
createProductsWorkflow.hooks.productsCreated(
async ({ products, additional_data }, { container }) => {
if (!additional_data.brand) {
if (!additional_data?.brand) {
return
}
@@ -204,4 +204,4 @@ createProductsWorkflow.hooks.productsCreated(
)
```
This updates the product to their original state before adding the brand to their `metadata` property.
This updates the products to their original state before adding the brand to their `metadata` property.