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, }); })