diff --git a/src/components/forum/forumSubjectUpdate.js b/src/components/forum/forumSubjectUpdate.js index db87bc0..4ca6cec 100644 --- a/src/components/forum/forumSubjectUpdate.js +++ b/src/components/forum/forumSubjectUpdate.js @@ -17,16 +17,6 @@ const ForumSubjectUpdate = ({ const updateSubjectTitle = React.createRef() const updateSubjectAuthor = React.createRef() -<<<<<<< HEAD - const updateOldSubject = (event) => { - event.preventDefault() - if ( updateSubjectTitle.current.value !== '') { - let putSubject = { - id: subject.id, - name: updateSubjectTitle.current.value, - user_id: user.id, - thread_id: threads.actualThreadID, -======= const [selectAuthorID, setSelectAuthorID] = useState(-1) const [selectThreadID, setSelectThreadID] = useState(-1) @@ -48,7 +38,6 @@ const ForumSubjectUpdate = ({ name: updateSubjectTitle.current.value, user_id: selectAuthorID === -1 ? subject.user_id : selectAuthorID, thread_id: selectThreadID === -1 ? subject.thread_id : selectThreadID, ->>>>>>> front token: user.token } updateSubject(putSubject) @@ -75,13 +64,8 @@ const ForumSubjectUpdate = ({