Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:memo: bookmark

Vanessa398afa854f55
diff --git a/app/src/menus/bookmark.ts b/app/src/menus/bookmark.ts
index 3e3d746b63..87a30c8415 100644
--- a/app/src/menus/bookmark.ts
+++ b/app/src/menus/bookmark.ts
@@ -67,7 +67,7 @@ export const openBookmarkMenu = (element: HTMLElement, event: MouseEvent, bookma
icon: "iconTrashcan",
label: window.siyuan.languages.remove,
click: () => {
- const bookmarkText = (id ? element.parentElement.previousElementSibling : element).querySelector(".b3-list-item__text").textContent;
+ const bookmarkText = element.querySelector(".b3-list-item__text").textContent;
confirmDialog(window.siyuan.languages.deleteOpConfirm, `${window.siyuan.languages.confirmDelete} <b>${escapeHtml(bookmarkText)}</b>?`, () => {
if (id) {
fetchPost("/api/attr/setBlockAttrs", {id, attrs: {bookmark: ""}}, () => {