Skip to content

Commit

Permalink
Only show divider if both notes with and without ID are shown
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmayer committed Jan 20, 2025
1 parent 0bdb986 commit 96c492f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ class IDSidePanelView extends ItemView {
leaf.openFile(note.file);
});
}

if (showNotesWithoutID) {
// Add a divider

if (notesWithID.length > 0 && showNotesWithoutID && notesWithoutID.length > 0) {
container.createEl('hr');

// Create a container for notes without IDs
}

if (showNotesWithoutID) {
const listElWithoutID = container.createEl('div');
for (const note of notesWithoutID) {
const listItem = listElWithoutID.createEl('div');
Expand Down

0 comments on commit 96c492f

Please sign in to comment.