Skip to content

Commit

Permalink
When creating daily note, wait for it to be created before reading he…
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin authored Apr 14, 2024
1 parent b5a7986 commit 38d8305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/calendars/DailyNoteCalendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export default class DailyNoteCalendar extends EditableCalendar {
file = (await createDailyNote(m)) as TFile;
}
const metadata = await this.app.waitForMetadata(file);
await this.app.read(file);

const headingInfo = metadata.headings?.find(
(h) => h.heading == this.heading
Expand Down

0 comments on commit 38d8305

Please sign in to comment.