Skip to content

Commit

Permalink
fix: fix adding existing notes to journal
Browse files Browse the repository at this point in the history
  • Loading branch information
srg-kostyrko committed Oct 14, 2024
1 parent bbc9413 commit 54590a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/add-notes-journal-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class AddNotesJournalModal extends Modal {
private config: CalendarConfig,
) {
super(app);
this.journal = this.manager.get(this.config.name) as CalendarJournal;
this.journal = this.manager.get(this.config.id) as CalendarJournal;
}

onOpen(): void {
Expand Down Expand Up @@ -361,6 +361,7 @@ export class AddNotesJournalModal extends Modal {

private async processNote(note: TFile): Promise<void> {
this.writeToConsole(`Processing ${note.basename}`);
if (note.extension !== ".md") return this.writeToConsole(`Not a markdown file - skipped`);
const journalData = await this.manager.getJournalData(note.path);
this.console_ident++;
try {
Expand Down

0 comments on commit 54590a7

Please sign in to comment.