Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects

fix express error

Merged Fadhil Pradipta Widyanto requested to merge fadhil into master
1 file
+ 0
2
Compare changes
  • Side-by-side
  • Inline
@@ -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();
Loading