From ffe687719eef2fa96c4c4eb9d0b105cf54e4e14f Mon Sep 17 00:00:00 2001 From: Ross Keenan Date: Sat, 21 Aug 2021 09:06:36 +0200 Subject: [PATCH] fix(Hierarchy Note): :bug: Forgot to initialise hierarchyNotesArr as [] If no hierarchyNotes are present, this would cause an error --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 73761b73..8c364490 100644 --- a/src/main.ts +++ b/src/main.ts @@ -430,7 +430,7 @@ export default class BreadcrumbsPlugin extends Plugin { note: string; depth: number; children: string[]; - }[]; + }[] = []; if (this.settings.hierarchyNotes[0] !== "") { const currPath = this.app.workspace.getActiveFile().path; const contentArr = [];