mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-25 22:48:34 -06:00
fix inserting current timestamp into editor
This commit is contained in:
@@ -12,6 +12,10 @@ function getNodeByKey(key) {
|
||||
}
|
||||
|
||||
function getNoteIdFromNotePath(notePath) {
|
||||
if (!notePath) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const path = notePath.split("/");
|
||||
|
||||
return path[path.length - 1];
|
||||
|
||||
Reference in New Issue
Block a user