mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
various small fixes
This commit is contained in:
@@ -121,12 +121,12 @@ class TreeCache {
|
||||
}
|
||||
|
||||
/** @return {Promise<NoteShort>} */
|
||||
async getNote(noteId) {
|
||||
async getNote(noteId, silentNotFoundError = false) {
|
||||
if (noteId === 'none') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (await this.getNotes([noteId]))[0];
|
||||
return (await this.getNotes([noteId], silentNotFoundError))[0];
|
||||
}
|
||||
|
||||
addBranch(branch) {
|
||||
|
||||
Reference in New Issue
Block a user