fix: new page logic (#1621)

This commit is contained in:
Himself65
2023-03-20 02:39:18 -05:00
committed by GitHub
parent fe2d244460
commit cf3230c1ff
6 changed files with 17 additions and 31 deletions

View File

@@ -148,7 +148,7 @@ export const WorkspaceLayoutInner: React.FC<React.PropsWithChildren> = ({
},
[currentWorkspace, isPublicWorkspace, jumpToPage, jumpToPublicWorkspacePage]
);
const handleCreatePage = useCallback(async () => {
const handleCreatePage = useCallback(() => {
return helper.createPage(nanoid());
}, [helper]);
const handleOpenWorkspaceListModal = useCallback(() => {