From 2b374f4d60a98e1ee41900736a463a3473afdb7c Mon Sep 17 00:00:00 2001 From: Lee Soobeom Date: Mon, 15 Aug 2022 17:30:52 +0900 Subject: [PATCH] edit --- frontend/src/post/editpost.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/post/editpost.tsx b/frontend/src/post/editpost.tsx index 40f0644..0df7799 100644 --- a/frontend/src/post/editpost.tsx +++ b/frontend/src/post/editpost.tsx @@ -54,9 +54,9 @@ export function EditPost() { for (var i = 0; i < filelist.length; i++) { formdata.append("picture", filelist?.[i]); } - console.log("one file update before"); + // console.log("one file update before"); const res = await postApi.updateImgAndPost(user._id, formdata); - console.log("one file update", res); + // console.log("one file update", res); return res; } }; @@ -72,7 +72,7 @@ export function EditPost() { const updateRes = await updateImg2Db(file); // console.log("find newfilename", updateRes); navigate( - { pathname: `/post/${post._id}` }, + { pathname: `/posts/${post._id}` }, { replace: true, state: updateRes } ); -- GitLab