Skip to content

Commit

Permalink
Revert changes to pid.tsx'
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang committed Nov 12, 2023
1 parent fcf97ec commit 176fc6d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pages/event/[pid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ const EventDetail = () => {
useEffect(() => {
if (pid) {
fetchData('/api/event/' + pid)
.then(data => {
console.log(data);
setEvent(data);
})
.then(data => setEvent(data))
.catch(err => setError(err));
} else setError(new Error('No pid found'));
}, [pid]);
Expand Down

0 comments on commit 176fc6d

Please sign in to comment.