Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit e518b3a0 authored by FadhilP's avatar FadhilP
Browse files

fix express error

parent dfc99259
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ import axios from 'axios';
import { loggedIn } from '../services/loggedInService'
import authHeader from '../services/auth-header'
import { API_URL } from '../services/api_link'
import { response } from "express";
export default function Thread(props){
const redirect = () => {
......@@ -43,7 +42,6 @@ export default function Thread(props){
const fetch = async () => {
const responseComment = await axios.get(`${API_URL}/post/`);
const responseCommentData = responseComment.data.data.filter(comments => comments.thread_id == threadParm);
console.log(responseCommentData)
setComment(responseCommentData);
}
fetch();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment