Skip to content

Commit

Permalink
refactor: 이미지 업로드 비동기처리
Browse files Browse the repository at this point in the history
  • Loading branch information
MinGu-Jeong committed Apr 11, 2024
1 parent 166f08e commit b2a98fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page/Coop/components/MenuCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function MenuCard({ selectedMenuType }: MenuCardProps) {
file_name: file.name,
});
if (presigned.data.pre_signed_url) {
uploadImage({ presignedUrl: presigned.data.pre_signed_url, file });
await uploadImage({ presignedUrl: presigned.data.pre_signed_url, file });
uploadDiningImageMutation({
menu_id: menuId,
image_url: presigned.data.file_url,
Expand Down

0 comments on commit b2a98fe

Please sign in to comment.