mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
duplicate (single) note
This commit is contained in:
@@ -198,7 +198,7 @@ async function findExistencyIssues() {
|
||||
const branches = await repository.getEntities(`SELECT * FROM branches WHERE noteId = ? and parentNoteId = ? and isDeleted = 1`, [noteId, parentNoteId]);
|
||||
|
||||
// it's not necessarily "original" branch, it's just the only one which will survive
|
||||
const origBranch = branches.get(0);
|
||||
const origBranch = branches[0];
|
||||
|
||||
// delete all but the first branch
|
||||
for (const branch of branches.slice(1)) {
|
||||
|
||||
Reference in New Issue
Block a user