From d81a1f4ecf865d7ba442682e866f974748a570fd Mon Sep 17 00:00:00 2001 From: FallingStar624 Date: Thu, 17 Feb 2022 18:10:55 +0900 Subject: [PATCH] [#123] fix: fix bookmark bug --- src/pages/Meetingrooms.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/pages/Meetingrooms.js b/src/pages/Meetingrooms.js index 2b22dd9..0cd3f42 100644 --- a/src/pages/Meetingrooms.js +++ b/src/pages/Meetingrooms.js @@ -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); });