mirror of
https://github.com/vercel/commerce.git
synced 2025-05-13 05:07:51 +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) {
|
for (const item of menu) {
|
||||||
if (item.items.length) {
|
if (item.items.length) {
|
||||||
console.log({ collection, item });
|
|
||||||
const hasParent = item.items.some((subItem) => subItem.path.includes(collection));
|
const hasParent = item.items.some((subItem) => subItem.path.includes(collection));
|
||||||
if (hasParent) {
|
if (hasParent) {
|
||||||
parentCollection = item;
|
parentCollection = item;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user