mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
simplified new entity ID allocation
This commit is contained in:
@@ -131,9 +131,7 @@ class Note extends Entity {
|
||||
}
|
||||
|
||||
beforeSaving() {
|
||||
if (!this.noteId) {
|
||||
this.noteId = utils.newNoteId();
|
||||
}
|
||||
super.beforeSaving();
|
||||
|
||||
if (this.isJson()) {
|
||||
this.content = JSON.stringify(this.jsonContent, null, '\t');
|
||||
|
||||
Reference in New Issue
Block a user