docs: fix usage of AdminCreateProduct in validation of digital product recipe (#8601)

This commit is contained in:
Shahed Nasser
2024-08-16 09:28:31 +03:00
committed by GitHub
parent f00e61707c
commit 1bfdceb34c

View File

@@ -686,7 +686,7 @@ export const createDigitalProductsSchema = z.object({
file_id: z.string(),
mime_type: z.string(),
})),
product: AdminCreateProduct,
product: AdminCreateProduct(),
})
```
@@ -2616,4 +2616,4 @@ Aside from customizing the Next.js Starter storefront, you can also create a cus
### Admin Development
In this recipe, you learned how to customize the admin with UI routes. You can also do further customization using widgets. Learn more in [this documentation](!docs!/advanced-development/admin).
In this recipe, you learned how to customize the admin with UI routes. You can also do further customization using widgets. Learn more in [this documentation](!docs!/advanced-development/admin).