mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: can not create a new edgeless doc with "@" on edgeless (#7772)
Close issue [BS-935](https://linear.app/affine-design/issue/BS-935).
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user