From c1c90a2fc3679c5d7d3ef1fbe2bcb6cde8083a35 Mon Sep 17 00:00:00 2001 From: reinaka Date: Tue, 10 Sep 2024 16:52:19 +0300 Subject: [PATCH] fix(37010106): remove responseT --- packages/pkg.popover.add-file/AddFilePopover.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/pkg.popover.add-file/AddFilePopover.tsx b/packages/pkg.popover.add-file/AddFilePopover.tsx index 58fd862b..82185b3a 100644 --- a/packages/pkg.popover.add-file/AddFilePopover.tsx +++ b/packages/pkg.popover.add-file/AddFilePopover.tsx @@ -85,7 +85,10 @@ export const AddFilePopover = ({ const formData = new FormData(); formData.append('image', webpImage); - type responseT = { + const { + data, + status, + }: { data: { creator_user_id: number; id: string; @@ -93,9 +96,7 @@ export const AddFilePopover = ({ name: string; }; status: number; - }; - - const { data, status }: responseT = await post({ + } = await post({ service: 'backend', path: '/api/protected/storage-service/files/images/', body: formData,