mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix creating new calendar on each date note request
This commit is contained in:
parent
23c06ebed8
commit
30b2d15f3d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user