We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6774d0 commit 261a0b5Copy full SHA for 261a0b5
package/src/middlewares/attachments.ts
@@ -83,10 +83,9 @@ export const createDraftAttachmentsCompositionMiddleware = (
83
const { attachmentManager } = composer;
84
if (!attachmentManager) return forward();
85
86
- const successfulUploads = attachmentManager.successfulUploads;
87
- const attachments = successfulUploads.length
88
- ? (state.draft.attachments ?? []).concat(successfulUploads.map(localAttachmentToAttachment))
89
- : undefined;
+ const attachments = (state.draft.attachments ?? []).concat(
+ attachmentManager.attachments.map(localAttachmentToAttachment),
+ );
90
91
return next({
92
...state,
0 commit comments