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: can not create a new edgeless doc with "@" on edgeless (#7772)

akumatusf3855c57b423
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx
index ede3febe5d..e0e17f6054 100644
--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx
+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx
@@ -405,13 +405,14 @@ export function patchQuickSearchService(
resolve({
userInput: result.payload.url,
});
- } else if (
- result.source === 'creation' &&
- result.id === 'creation:create-page'
- ) {
+ } else if (result.source === 'creation') {
const docsService = framework.get(DocsService);
+ const mode =
+ result.id === 'creation:create-edgeless'
+ ? 'edgeless'
+ : 'page';
const newDoc = docsService.createDoc({
- mode: 'page',
+ mode,
title: result.payload.title,
});
resolve({