slug fix
This commit is contained in:
@@ -53,7 +53,7 @@ export function resolveCategoryIdFromSlugPath(categories, rootCategoryId, slugPa
|
||||
for (const slug of segments) {
|
||||
const children = getCategoryChildren(categories, currentId);
|
||||
const match = children.find(
|
||||
(child) => categorySlug(child.name, child.id, rootCategoryId) === slug,
|
||||
(child) => categorySlug(child, rootCategoryId) === slug,
|
||||
);
|
||||
if (!match) return null;
|
||||
currentId = match.id;
|
||||
|
||||
Reference in New Issue
Block a user