Skip to content

Commit

Permalink
fix(Hierarchy Note): 🐛 Forgot to initialise hierarchyNotesArr as []
Browse files Browse the repository at this point in the history
If no hierarchyNotes are present, this would cause an error
  • Loading branch information
SkepticMystic committed Aug 21, 2021
1 parent cf32923 commit ffe6877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit ffe6877

Please sign in to comment.