mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 12:47:50 +00:00
fix: remove console log
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
913e7a1809
commit
0eba468825
@ -20,7 +20,6 @@ const findParentCollection = (menu: Menu[], collection: string): Menu | null =>
|
||||
|
||||
for (const item of menu) {
|
||||
if (item.items.length) {
|
||||
console.log({ collection, item });
|
||||
const hasParent = item.items.some((subItem) => subItem.path.includes(collection));
|
||||
if (hasParent) {
|
||||
parentCollection = item;
|
||||
|
Loading…
x
Reference in New Issue
Block a user