mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Login, Sign Up, Log Out, and checkout & customer association
This commit is contained in:
@@ -11,7 +11,7 @@ const getAllCollections = async (options?: {
|
||||
config = getConfig(config)
|
||||
|
||||
const { data } = await config.fetch(getAllCollectionsQuery, { variables })
|
||||
const edges = data.collections?.edges ?? []
|
||||
const edges = data?.collections?.edges ?? []
|
||||
|
||||
const categories = edges.map(
|
||||
({ node: { id: entityId, title: name, handle } }: CollectionEdge) => ({
|
||||
|
Reference in New Issue
Block a user