mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
fix js note can't run
This commit is contained in:
@@ -107,7 +107,7 @@ function getNewNoteTitle(parentNote: BNote) {
|
||||
// - now
|
||||
// - parentNote
|
||||
|
||||
title = (0, eval)(`\`${titleTemplate}\``);
|
||||
title = eval(`\`${titleTemplate}\``);
|
||||
} catch (e: any) {
|
||||
log.error(`Title template of note '${parentNote.noteId}' failed with: ${e.message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user