Fixed open folder note through path bug

This commit is contained in:
Lost Paul 2023-05-03 13:32:01 +02:00
parent 477b4e0654
commit 2d51467728
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"id": "folder-notes",
"name": "Folder notes",
"version": "1.1.6",
"version": "1.1.7",
"minAppVersion": "0.15.0",
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
"author": "Lost Paul",

View file

@ -49,7 +49,7 @@ export default class FolderNotesPlugin extends Plugin {
}
});
element.parentElement?.setAttribute('data-path', path.slice(0, -1));
if (breadcrumbs.length > 1) {
if (breadcrumbs.length > 0) {
breadcrumbs.forEach((breadcrumb: HTMLElement) => {
if (breadcrumb.onclick) return;
breadcrumb.onclick = (event: MouseEvent) => this.handleViewHeaderClick(event);