Skip to content

Commit

Permalink
Merge pull request #63 from collie-jun/main
Browse files Browse the repository at this point in the history
Fix: 일정 삭제
  • Loading branch information
collie-jun authored Aug 27, 2024
2 parents b2227fd + 04fd325 commit ed61c34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion travelday-fe/src/components/schedulePage/scheduleList.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const ScheduleList = ({ schedules, onItemClick, onDeleteClick }) => {
setIsModalOpen(true);
};


const confirmDelete = async () => {
if (selectedScheduleId) {
try {
Expand All @@ -58,9 +59,9 @@ const ScheduleList = ({ schedules, onItemClick, onDeleteClick }) => {
setIsModalOpen(false);
window.alert('삭제되었습니다!');
} catch (error) {
// 에러 로그 추가
setIsModalOpen(false);
window.alert('삭제되었습니다!');
// 에러 로그 추가
console.error("일정 삭제 중 오류 발생:", error);
// 서버 응답에 대한 에러 로그 추가
if (error.response) {
Expand Down

0 comments on commit ed61c34

Please sign in to comment.