fix creating new calendar on each date note request

This commit is contained in:
zadam 2022-08-02 18:25:05 +02:00
parent 23c06ebed8
commit 30b2d15f3d

View file

@ -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);
}