Skip to content

Commit

Permalink
feat(shelter): 봉사 모집 게시글 작성 및 수정 페이지 form 제출 시, request 에 이미지 url 추가가 (
Browse files Browse the repository at this point in the history
  • Loading branch information
kutta97 authored Nov 29, 2023
1 parent a1e8a27 commit 921dee4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions apps/shelter/src/pages/volunteers/update/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ export default function VolunteersUpdatePage() {
startTime: String(startTime),
endTime: String(endTime),
deadline: String(deadline),
imageUrls: photos
.filter(({ url }) => url !== 'upload-failed')
.map(({ url }) => url),
},
});
};
Expand Down
9 changes: 5 additions & 4 deletions apps/shelter/src/pages/volunteers/write/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ export default function VolunteersWritePage() {
// alert(JSON.stringify(data));
const { startTime, endTime, deadline } = data;

const request = {
mutate({
...data,
startTime: String(startTime),
endTime: String(endTime),
deadline: String(deadline),
};

mutate(request);
imageUrls: photos
.filter(({ url }) => url !== 'upload-failed')
.map(({ url }) => url),
});
};

return (
Expand Down

0 comments on commit 921dee4

Please sign in to comment.