mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -38,7 +38,7 @@ function getRecentNotes(activeNoteId) {
|
||||
const hoistedNoteId = cls.getHoistedNoteId();
|
||||
if (hoistedNoteId !== 'root') {
|
||||
extraCondition = `AND recent_notes.notePath LIKE ?`;
|
||||
params.push('%' + hoistedNoteId + '%');
|
||||
params.push(`%${hoistedNoteId}%`);
|
||||
}
|
||||
|
||||
const recentNotes = becca.getRecentNotesFromQuery(`
|
||||
|
||||
Reference in New Issue
Block a user