mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
duplicate (single) note
This commit is contained in:
@@ -42,7 +42,7 @@ class Branch extends Entity {
|
||||
async beforeSaving() {
|
||||
if (this.notePosition === undefined) {
|
||||
const maxNotePos = await sql.getValue('SELECT MAX(notePosition) FROM branches WHERE parentNoteId = ? AND isDeleted = 0', [this.parentNoteId]);
|
||||
this.notePosition = maxNotePos === null ? 0 : maxNotePos + 1;
|
||||
this.notePosition = maxNotePos === null ? 0 : maxNotePos + 10;
|
||||
}
|
||||
|
||||
if (!this.isDeleted) {
|
||||
|
||||
Reference in New Issue
Block a user