From 92f43238054f8781686858acbeb912842cda74ca Mon Sep 17 00:00:00 2001 From: Chaeyeon1 <66813821+Chaeyeon1@users.noreply.github.com> Date: Wed, 29 Nov 2023 02:47:46 +0900 Subject: [PATCH] =?UTF-8?q?categoryId=20number=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/app/write/Modal/SaveModal.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/client/src/app/write/Modal/SaveModal.tsx b/client/src/app/write/Modal/SaveModal.tsx index e1e9e4c7..09468dd3 100644 --- a/client/src/app/write/Modal/SaveModal.tsx +++ b/client/src/app/write/Modal/SaveModal.tsx @@ -134,11 +134,10 @@ function SaveModal({ postCreateRequest: { title: writeProps?.title, content: writeProps?.content, - thumbnail: '', isPrivate: privateMode === 'private' ? true : false, - prId: isPr ? categoryId : undefined, + prId: isPr ? Number(categoryId) : undefined, hashtags: writeProps?.tags, - categoryId, + categoryId: Number(categoryId), }, }); @@ -152,11 +151,10 @@ function SaveModal({ postCreateRequest: { title: writeProps?.title, content: writeProps?.content, - thumbnail: '', isPrivate: privateMode === 'private' ? true : false, - prId: isPrUpdate ? categoryId : undefined, + prId: isPrUpdate ? Number(categoryId) : undefined, hashtags: writeProps?.tags, - categoryId, + categoryId: Number(categoryId), postId, }, }); @@ -172,7 +170,7 @@ function SaveModal({ postBasicDto: { title: writeProps?.title ?? '', content: writeProps?.content ?? '', - thumbnail: '', + thumbnail: null, hashtags: writeProps?.tags ?? [], }, }); @@ -188,7 +186,7 @@ function SaveModal({ postBasicDto: { title: writeProps?.title ?? '', content: writeProps?.content ?? '', - thumbnail: '', + thumbnail: null, hashtags: writeProps?.tags ?? [], }, });