diff --git a/src/public/app/services/tree.js b/src/public/app/services/tree.js index e367c3586..e8423b391 100644 --- a/src/public/app/services/tree.js +++ b/src/public/app/services/tree.js @@ -273,12 +273,12 @@ async function getNoteTitleWithPathAsSuffix(notePath) { .append($('').text(title)); - $titleWithPath.append(formatPath(path)); + $titleWithPath.append(formatNotePath(path)); return $titleWithPath; } -function formatPath(path) { +function formatNotePath(path) { const $notePath = $(''); if (path.length > 0) { @@ -316,5 +316,6 @@ export default { getNoteTitle, getNotePathTitle, getNoteTitleWithPathAsSuffix, - isNotePathInHiddenSubtree + isNotePathInHiddenSubtree, + formatNotePath };