diff --git a/blocksuite/affine/block-attachment/src/utils.ts b/blocksuite/affine/block-attachment/src/utils.ts index 593d39a7b..cba8ac8ba 100644 --- a/blocksuite/affine/block-attachment/src/utils.ts +++ b/blocksuite/affine/block-attachment/src/utils.ts @@ -268,13 +268,7 @@ export async function addAttachments( ): Promise { if (!files.length) return []; - const attachmentService = std.getService('affine:attachment'); const gfx = std.get(GfxControllerIdentifier); - - if (!attachmentService) { - console.error('Attachment service not found'); - return []; - } const maxFileSize = std.store.get(FileSizeLimitService).maxFileSize; const isSizeExceeded = files.some(file => file.size > maxFileSize); if (isSizeExceeded) {