From 3ab71117f6bc01dd14672cdf5dd58f7fbd55c1a6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 22 Nov 2022 00:52:43 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/6648 --- app/src/protyle/util/editorCommonEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index aaec9083b..0ee75d107 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, }); })