mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
logging improvements
This commit is contained in:
@@ -20,7 +20,7 @@ function getNotesWithLabel(name, value) {
|
||||
|
||||
// TODO: should be in search service
|
||||
/** @returns {Note|null} */
|
||||
function getNoteWithLabel(name, value) {
|
||||
function getNoteWithLabel(name, value = undefined) {
|
||||
// optimized version (~20 times faster) without using normal search, useful for e.g. finding date notes
|
||||
const attrs = becca.findAttributes('label', name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user