From 99eb20007e6696312873b1a8451862f419adf4d5 Mon Sep 17 00:00:00 2001 From: dbwhdtjr0457 Date: Thu, 23 Nov 2023 20:01:59 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EC=88=98=EC=A0=95=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=20=ED=98=B8=EC=B6=9C=20=EC=8B=9C=20=EC=97=90=EB=9F=AC?= =?UTF-8?q?=20=EB=B0=9C=EC=83=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit json 함수 지우는 부분을 잘못 지워 에러가 발생하는 부분을 수정하였습니다. --- FE/src/components/DiaryModal/DiaryUpdateModal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FE/src/components/DiaryModal/DiaryUpdateModal.js b/FE/src/components/DiaryModal/DiaryUpdateModal.js index fee2f2d..f002c0f 100644 --- a/FE/src/components/DiaryModal/DiaryUpdateModal.js +++ b/FE/src/components/DiaryModal/DiaryUpdateModal.js @@ -14,7 +14,7 @@ async function getShapeFn() { headers: { "Content-Type": "application/json", }, - }); + }).then((res) => res.json()); } async function updateDiaryFn(data) { @@ -25,7 +25,7 @@ async function updateDiaryFn(data) { Authorization: `Bearer ${data.accessToken}`, }, body: JSON.stringify(data.diaryData), - }).then((res) => res.json()); + }); } async function getDiary(accessToken, diaryUuid) {