feat(medusa): complete cart create reservation (#7250)

This commit is contained in:
Carlos R. L. Rodrigues
2024-05-06 14:36:55 -03:00
committed by GitHub
parent a736e728b8
commit 5228b14ca9
18 changed files with 195 additions and 77 deletions

View File

@@ -83,6 +83,11 @@ export function deepFlatMap(
}
} else {
if (Array.isArray(element[currentKey])) {
if (element[currentKey].length === 0) {
callback({ ...context })
continue
}
element[currentKey].forEach((item) => {
stack.push({
element: item,