Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/6138

Vanessa5f37aaf4607c
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index e07d87b71a..94d45b9616 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -578,18 +578,6 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b
wbrElement.remove();
}
});
-
- // 更新 ws 嵌入块
- protyle.wysiwyg.element.querySelectorAll(`[data-type="NodeBlockQueryEmbed"][data-node-id="${operation.id}"]`).forEach((item) => {
- item.removeAttribute("data-render");
- blockRender(protyle, item);
- });
- protyle.wysiwyg.element.querySelectorAll('[data-type="NodeBlockQueryEmbed"]').forEach((item) => {
- if (item.querySelector(`[data-node-id="${operation.id}"]`)) {
- item.removeAttribute("data-render");
- blockRender(protyle, item);
- }
- });
// 更新 ws 引用块
updateRef(protyle, operation.id);
return;