mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
fix: add new page from quick search
This commit is contained in:
@@ -16,7 +16,7 @@ export const Footer = (props: { query: string }) => {
|
||||
<Command.Item
|
||||
data-testid="quickSearch-addNewPage"
|
||||
onSelect={async () => {
|
||||
const pageId = await createPage?.current?.();
|
||||
const pageId = await createPage?.();
|
||||
if (pageId) {
|
||||
openPage(pageId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user