mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix creating root calendar note when missing, #752
This commit is contained in:
		@@ -40,7 +40,9 @@ async function getRootCalendarNote() {
 | 
				
			|||||||
            parentNoteId: 'root',
 | 
					            parentNoteId: 'root',
 | 
				
			||||||
            title: 'Calendar',
 | 
					            title: 'Calendar',
 | 
				
			||||||
            target: 'into',
 | 
					            target: 'into',
 | 
				
			||||||
            isProtected: false
 | 
					            isProtected: false,
 | 
				
			||||||
 | 
					            type: 'text',
 | 
				
			||||||
 | 
					            content: ''
 | 
				
			||||||
        })).note;
 | 
					        })).note;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        await attributeService.createLabel(rootNote.noteId, CALENDAR_ROOT_LABEL);
 | 
					        await attributeService.createLabel(rootNote.noteId, CALENDAR_ROOT_LABEL);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -71,7 +71,7 @@ function sendMessageToAllClients(message) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function fillInAdditionalProperties(sync) {throw new Error("AAA");
 | 
					async function fillInAdditionalProperties(sync) {
 | 
				
			||||||
    // fill in some extra data needed by the frontend
 | 
					    // fill in some extra data needed by the frontend
 | 
				
			||||||
    if (sync.entityName === 'attributes') {
 | 
					    if (sync.entityName === 'attributes') {
 | 
				
			||||||
        sync.noteId = await sql.getValue(`SELECT noteId
 | 
					        sync.noteId = await sql.getValue(`SELECT noteId
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user