mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08:00
feat: simplify id rules
This commit is contained in:
@@ -153,7 +153,9 @@ export const AppStateProvider = ({ children }: { children?: ReactNode }) => {
|
||||
Promise.resolve(null)
|
||||
);
|
||||
|
||||
createPage.current = (pageId: string = uuidv4IdGenerator()) =>
|
||||
createPage.current = (
|
||||
pageId: string = uuidv4IdGenerator().replaceAll('-', '')
|
||||
) =>
|
||||
new Promise<string | null>(resolve => {
|
||||
const { currentWorkspace } = state;
|
||||
if (!currentWorkspace) {
|
||||
|
||||
Reference in New Issue
Block a user