This commit is contained in:
2025-07-21 05:11:14 +09:00
parent 2570323e3a
commit 3f42eb6915
12 changed files with 210 additions and 143 deletions
+3 -2
View File
@@ -51,7 +51,7 @@ export default ({ user }: Props) => {
if (!(id))
return
void (async () => {
const fetchPost = async () => {
try
{
const res = await axios.get (`${ API_BASE_URL }/posts/${ id }`, { headers: {
@@ -63,7 +63,8 @@ export default ({ user }: Props) => {
if (axios.isAxiosError (err))
setStatus (err.status ?? 200)
}
}) ()
}
fetchPost ()
}, [id])
useEffect (() => {