fix: add new page from quick search

This commit is contained in:
JimmFly
2022-12-22 18:54:00 +08:00
parent a64f77c9d2
commit c2ce4927c8
@@ -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);
}