Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/6648

Vanessa3ab71117f6bc
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index aaec9083ba..0ee75d107b 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -336,13 +336,13 @@ const dragSame = async (protyle: IProtyle, sourceElements: Element[], targetElem
headingIds.data.reverse().forEach((headingId: string) => {
undoOperations.push({
action: "move",
- id,
+ id: headingId,
previousID,
parentID,
});
doOperations.push({
action: "move",
- id:headingId,
+ id: headingId,
previousID: targetId,
});
})