Skip to content

Commit

Permalink
refactor: (#123) 글 작성 api 형식 변경에 따른 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chsua committed Jul 27, 2023
1 parent aafbb28 commit f1b2b56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/components/PostForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ export default function PostForm({ data, mutate, isError, error }: PostFormProps

const optionTextAreas = e.target.querySelectorAll('textarea[name="optionText"]');
const writingOptionList = Array.from(optionTextAreas).map((textarea: any, index) => {
return options.length === 0
? textarea.value
: { content: textarea.value, imageURL: options[index].imageUrl };
return { content: textarea.value, imageURL: options[index].imageUrl };
});

const updatedPostTexts = {
Expand Down

0 comments on commit f1b2b56

Please sign in to comment.