Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 711b62c1 authored by Jonathan Chandra's avatar Jonathan Chandra
Browse files

edit FormEditThread.js

parent 4c6d95f1
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ export default function CreateThreadForm(props){
},
{headers: authHeader()})
const topic = await (await axios.get(`${API_URL}/topics`)).data.data.find(topic => topic.id == topicId)
props.history.push(`/topic/${topic.name}/${threadIdParam}`)
props.redirect(`/topic/${topic.name}/${threadIdParam}`)
}
catch(error){
setMessage("Thread title already exist in the selected topic")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment