This commit is contained in:
azivner 2017-12-12 22:26:40 -05:00
parent 4596d56ae8
commit 513689b175

View File

@ -78,7 +78,8 @@ const noteTree = (function() {
}
function getNodesByNoteId(noteId) {
return getTree().getNodesByRef(noteId);
const list = getTree().getNodesByRef(noteId);
return list ? list : []; // if no nodes with this refKey are found, fancy tree returns null
}
function setPrefix(noteTreeId, prefix) {