Fix startup error

This commit is contained in:
Platinum 2024-02-06 19:36:11 +11:00
parent 239bb45dc1
commit 9acf51b0b0

View File

@ -34,7 +34,7 @@ export function getAttachmentCategoryIds(handbookCategories: Category[]): string
function getChildCategoriesRecursively(handbookCategories: Category[], parentId: string): Category[] { function getChildCategoriesRecursively(handbookCategories: Category[], parentId: string): Category[] {
const childCategories = handbookCategories.filter(category => category.ParentId === parentId); const childCategories = handbookCategories.filter(category => category.ParentId === parentId);
const grandChildrenCategories = childCategories.reduce( const grandChildrenCategories = childCategories.reduce(
(memo, category) => memo.concat(this.getChildCategoriesRecursively(handbookCategories, category.Id)), (memo, category) => memo.concat(getChildCategoriesRecursively(handbookCategories, category.Id)),
[] []
); );