Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16197

Vanessafd37c83cfda9
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts
index 958c615516..a2de68284c 100644
--- a/app/src/protyle/wysiwyg/remove.ts
+++ b/app/src/protyle/wysiwyg/remove.ts
@@ -90,9 +90,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang
id: topElement.getAttribute("data-node-id"),
});
deletes.push(...foldTransaction.data.doOperations.slice(1));
- const previousID = topElement.previousElementSibling ? topElement.previousElementSibling.getAttribute("data-node-id") : "";
foldTransaction.data.undoOperations.forEach((operationItem: IOperation, index: number) => {
- operationItem.previousID = previousID;
if (index > 0) {
operationItem.context = {
ignoreProcess: "true"