From 2c110f039537a749fb450c847edfd8f233ed32b0 Mon Sep 17 00:00:00 2001 From: Jukka Ahonen Date: Tue, 2 Jul 2024 13:34:41 +0300 Subject: [PATCH] fetchApplicationRelatedAttachments: payload type fix --- src/application/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application/actions.ts b/src/application/actions.ts index 3fc7927a8..77742705b 100644 --- a/src/application/actions.ts +++ b/src/application/actions.ts @@ -17,7 +17,7 @@ export const fetchAttachmentAttributes = (): FetchAttachmentAttributesAction => export const receiveAttachmentAttributes = (payload: Record): ReceiveAttachmentAttributesAction => createAction('mvj/application/RECEIVE_ATTACHMENT_ATTRIBUTES')(payload); export const receiveAttachmentMethods = (payload: Record): ReceiveAttachmentMethodsAction => createAction('mvj/application/RECEIVE_ATTACHMENT_METHODS')(payload); export const attachmentAttributesNotFound = (): AttachmentAttributesNotFoundAction => createAction('mvj/application/ATTACHMENT_ATTRIBUTES_NOT_FOUND')(); -export const fetchApplicationRelatedAttachments = (payload: Record): FetchApplicationRelatedAttachmentsAction => createAction('mvj/application/FETCH_ATTACHMENTS')(payload); +export const fetchApplicationRelatedAttachments = (payload: number | null | undefined): FetchApplicationRelatedAttachmentsAction => createAction('mvj/application/FETCH_ATTACHMENTS')(payload); export const receiveApplicationRelatedAttachments = (payload: Record): ReceiveApplicationRelatedAttachmentsAction => createAction('mvj/application/RECEIVE_ATTACHMENTS')(payload); export const applicationRelatedAttachmentsNotFound = (payload?: Record): ApplicationRelatedAttachmentsNotFoundAction => createAction('mvj/application/ATTACHMENTS_NOT_FOUND')(payload); export const deleteUploadedAttachment = (payload: Record): DeleteUploadAction => createAction('mvj/application/DELETE_UPLOAD')(payload);