Skip to content

Commit

Permalink
fix(util): issue with drag to rearrange button
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Jul 25, 2022
1 parent f9cfcfe commit 89183a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const addIconToDragToRearrange = (plugin: IconFolderPlugin, file: TFile):
}

const title = titleContainer.querySelector('.view-header-title');
if (!title) {
if (!title || title.innerHTML.length === 0) {
return;
}

Expand Down

0 comments on commit 89183a3

Please sign in to comment.