diff --git a/src/components/EditorPage/MdEditor.jsx b/src/components/EditorPage/MdEditor.jsx index e0dbe4a..6c48f2d 100644 --- a/src/components/EditorPage/MdEditor.jsx +++ b/src/components/EditorPage/MdEditor.jsx @@ -62,6 +62,8 @@ function MdEditor() { } }; + console.log(postData?.site); + const handleModalSave = (thumbnail) => { postImageUpload({ img: thumbnail }).then((res) => { const addedPostData = { @@ -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 : "",