ryoji-s 3 лет назад
Родитель
Сommit
26f3a38b6a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/stores/attachment.tsx

+ 1 - 1
apps/app/src/stores/attachment.tsx

@@ -33,7 +33,7 @@ export const useSWRxAttachment = (attachmentId: string): SWRResponseWithUtils<Ut
   );
 
   // Utils
-  const remove = useCallback(async(body: { attachmentId: string }) => {
+  const remove = useCallback(async(body: { attachment_id: string }) => {
     try {
       await apiPost('/attachments.remove', body);
       swrResponse.mutate();