mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
refactor(editor): remove dependency of command global types (#9903)
Closes: [BS-2216](https://linear.app/affine-design/issue/BS-2216/remove-global-types-in-command)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { autoResizeElementsCommand } from '@blocksuite/affine-block-surface';
|
||||
import { toast } from '@blocksuite/affine-components/toast';
|
||||
import type {
|
||||
AttachmentBlockProps,
|
||||
@@ -516,7 +517,7 @@ export async function addImages(
|
||||
editing: false,
|
||||
});
|
||||
if (isMultipleFiles) {
|
||||
std.command.exec('autoResizeElements');
|
||||
std.command.exec(autoResizeElementsCommand);
|
||||
}
|
||||
return blockIds;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user