mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-23 20:18:42 +08:00
refactor(editor): reorg block specs (#9421)
This commit is contained in:
@@ -1892,7 +1892,7 @@ export async function createNote(
|
||||
content?: string
|
||||
) {
|
||||
const start = await toViewCoord(page, coord1);
|
||||
return addNote(page, content || 'note', start[0], start[1]);
|
||||
return addNote(page, content ?? 'note', start[0], start[1]);
|
||||
}
|
||||
|
||||
export async function hoverOnNote(page: Page, id: string, offset = [0, 0]) {
|
||||
|
||||
Reference in New Issue
Block a user