mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
changed list products so it does not rely on unreleased version of medusa-js
This commit is contained in:
@@ -20,8 +20,8 @@ export default function getAllProductPathsOperation({
|
||||
|
||||
const results = await config.fetch('products', 'list', {})
|
||||
|
||||
const productHandles = results.data?.products
|
||||
? results.data.products.map(({ handle }: MedusaProduct) => ({
|
||||
const productHandles = results.products
|
||||
? results.products.map(({ handle }: MedusaProduct) => ({
|
||||
path: `/${handle}`,
|
||||
}))
|
||||
: []
|
||||
|
Reference in New Issue
Block a user