From 9acf51b0b078733080a75b2d1e4cc3c93c428f7f Mon Sep 17 00:00:00 2001 From: Platinum Date: Tue, 6 Feb 2024 19:36:11 +1100 Subject: [PATCH] Fix startup error --- src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.ts b/src/helpers.ts index af8e825..756e5d8 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -34,7 +34,7 @@ export function getAttachmentCategoryIds(handbookCategories: Category[]): string function getChildCategoriesRecursively(handbookCategories: Category[], parentId: string): Category[] { const childCategories = handbookCategories.filter(category => category.ParentId === parentId); const grandChildrenCategories = childCategories.reduce( - (memo, category) => memo.concat(this.getChildCategoriesRecursively(handbookCategories, category.Id)), + (memo, category) => memo.concat(getChildCategoriesRecursively(handbookCategories, category.Id)), [] );