Skip to content

Commit

Permalink
fix: 사이트 드롭다운 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ymj07168 committed Oct 29, 2024
1 parent 6755e4e commit ed24772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/EditorPage/MdEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ function MdEditor() {
}
};

console.log(postData?.site);

const handleModalSave = (thumbnail) => {
postImageUpload({ img: thumbnail }).then((res) => {
const addedPostData = {
Expand Down Expand Up @@ -99,7 +101,7 @@ function MdEditor() {
useEffect(() => {
setPostData({
language: isEdit ? data?.til.language : "",
site: isEdit ? data?.til.language : "",
site: isEdit ? data?.til.site : "",
algorithmId: isEdit ? data?.til.algorithmId : null,
title: isEdit ? data?.til.title : "",
link: isEdit ? data?.til.link : "",
Expand Down

0 comments on commit ed24772

Please sign in to comment.