Skip to content

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

:bug: Fix folded heading child blocks still visible after undo unfold https://github.com/siyuan-note/siyuan/issues/18176

Danielac808d5d4782
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 3b095e6fff..a4e641f135 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -501,10 +501,6 @@ export const onTransaction = (protyle: IProtyle, operations: IOperation[], isUnd
removeFoldHeading(item);
}
});
- // undo 会走 transaction
- if (isUndo) {
- return;
- }
if (operation.retData) {
operation.retData.forEach((item: string) => {
let embedElement: HTMLElement | false;