Skip to content

Commit

Permalink
categoryId number로 수정하기
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaeyeon1 committed Nov 28, 2023
1 parent d2e8132 commit 92f4323
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions client/src/app/write/Modal/SaveModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
});

Expand All @@ -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,
},
});
Expand All @@ -172,7 +170,7 @@ function SaveModal({
postBasicDto: {
title: writeProps?.title ?? '',
content: writeProps?.content ?? '',
thumbnail: '',
thumbnail: null,
hashtags: writeProps?.tags ?? [],
},
});
Expand All @@ -188,7 +186,7 @@ function SaveModal({
postBasicDto: {
title: writeProps?.title ?? '',
content: writeProps?.content ?? '',
thumbnail: '',
thumbnail: null,
hashtags: writeProps?.tags ?? [],
},
});
Expand Down

0 comments on commit 92f4323

Please sign in to comment.