mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 00:26:51 +08:00
fix: prettier code style
This commit is contained in:
@@ -4,7 +4,7 @@ import { OFFICE_CLIPBOARD_MIMETYPE } from './types';
|
||||
import { Clip } from './clip';
|
||||
import ClipboardParse from './clipboard-parse';
|
||||
import { getClipDataOfBlocksById } from './utils';
|
||||
|
||||
import { copyToClipboard } from '@toeverything/utils';
|
||||
class Copy {
|
||||
private _editor: Editor;
|
||||
private _clipboardParse: ClipboardParse;
|
||||
|
||||
@@ -26,7 +26,7 @@ export const getClipInfoOfBlockById = async (
|
||||
properties: blockView.getSelProperties(block, {}),
|
||||
children: [] as ClipBlockInfo[],
|
||||
};
|
||||
const children = await block?.children() ?? [];
|
||||
const children = (await block?.children()) ?? [];
|
||||
|
||||
for (let i = 0; i < children.length; i++) {
|
||||
const childInfo = await getClipInfoOfBlockById(editor, children[i].id);
|
||||
|
||||
Reference in New Issue
Block a user