Skip to content

Commit

Permalink
[#123] fix: fix bookmark bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FallingStar624 committed Feb 17, 2022
1 parent 8d0db4d commit d81a1f4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/pages/Meetingrooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ const MeetingroomCard = ({ meeting, openModal, setMeetingSeq }) => {
// 현재 즐겨찾기 중 => 누르면 해제
if (bookmark) {
axios
.delete(
process.env.REACT_APP_SERVER_URL + `/bookmarks/${meeting.meetingSeq}`,
{},
{
headers: {
Authorization: `Bearer ${localStorage.getItem('accessToken')}`,
},
}
)
.delete(process.env.REACT_APP_SERVER_URL + `/bookmarks/${meeting.meetingSeq}`, {
headers: {
Authorization: `Bearer ${localStorage.getItem('accessToken')}`,
},
})
.then((res) => {
setBookmark(false);
});
Expand Down

0 comments on commit d81a1f4

Please sign in to comment.