mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -75,7 +75,7 @@ function getNoteTitle(childNoteId, parentNoteId) {
|
||||
|
||||
const branch = parentNote ? becca.getBranchFromChildAndParent(childNote.noteId, parentNote.noteId) : null;
|
||||
|
||||
return ((branch && branch.prefix) ? `${branch.prefix} - ` : '') + title;
|
||||
return `${(branch && branch.prefix) ? `${branch.prefix} - ` : ''}${title}`;
|
||||
}
|
||||
|
||||
function getNoteTitleArrayForPath(notePathArray) {
|
||||
|
||||
Reference in New Issue
Block a user