fix inserting current timestamp into editor

This commit is contained in:
azivner
2018-08-29 20:22:57 +02:00
parent ee54dc3463
commit 1ece9b71ec
3 changed files with 9 additions and 3 deletions

View File

@@ -12,6 +12,10 @@ function getNodeByKey(key) {
}
function getNoteIdFromNotePath(notePath) {
if (!notePath) {
return null;
}
const path = notePath.split("/");
return path[path.length - 1];