Skip to content

Commit 55c8a56

Browse files
committed
fix(NextcloudBookmarks): Fix updateBookmark()
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 9c64fda commit 55c8a56

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/lib/adapters/NextcloudBookmarks.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -760,13 +760,11 @@ export default class NextcloudBookmarksAdapter implements Adapter, BulkImportRes
760760
if (oldBm && this.tree) {
761761
this.tree.removeFromIndex(oldBm)
762762
}
763-
oldBm.title = newBm.title
764-
oldBm.parentId = newBm.parentId
765763
if (!newFolder.children.find(item => String(item.id) === String(newBm.id) && item.type === 'bookmark')) {
766-
newFolder.children.push(oldBm)
764+
newFolder.children.push(newBm)
767765
}
768-
oldBm.id = upstreamId + ';' + newBm.parentId
769-
this.tree.updateIndex(oldBm)
766+
newBm.id = upstreamId + ';' + newBm.parentId
767+
this.tree.updateIndex(newBm)
770768

771769
return newBm.id
772770
})

0 commit comments

Comments
 (0)