Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): clear op history when create a new doc (#7347)

L-Sun3bb8253e13de
diff --git a/packages/common/infra/src/initialization/index.ts b/packages/common/infra/src/initialization/index.ts
index 436630a065..545775ead8 100644
--- a/packages/common/infra/src/initialization/index.ts
+++ b/packages/common/infra/src/initialization/index.ts
@@ -23,5 +23,6 @@ export function initEmptyPage(page: Doc, title?: string) {
{},
noteBlockId
);
+ page.history.clear();
});
}