mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-07 13:29:48 -06:00
fix creating new calendar on each date note request
This commit is contained in:
@@ -36,7 +36,7 @@ function getRootCalendarNote() {
|
||||
rootNote = searchService.findFirstNoteWithQuery('#workspaceCalendarRoot', new SearchContext({ignoreHoistedNote: false}));
|
||||
}
|
||||
|
||||
if (rootNote === null) {
|
||||
if (!rootNote) {
|
||||
rootNote = attributeService.getNoteWithLabel(CALENDAR_ROOT_LABEL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user