various small fixes

This commit is contained in:
zadam
2019-09-08 11:25:57 +02:00
parent 90afb2a1ee
commit f3955bcbdc
8 changed files with 17 additions and 16 deletions

View File

@@ -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) {