fix: remove console log

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe 2024-05-06 17:13:43 +07:00
parent 913e7a1809
commit 0eba468825
No known key found for this signature in database
GPG Key ID: CFD53CE570D42DF5

View File

@ -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;