A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: answer the author's conditional judgement
shuai888e873a7c00
diff --git a/ui/src/pages/Questions/Detail/index.tsx b/ui/src/pages/Questions/Detail/index.tsxindex 87c27caf..610e3dcd 100644--- a/ui/src/pages/Questions/Detail/index.tsx+++ b/ui/src/pages/Questions/Detail/index.tsx@@ -80,7 +80,10 @@ const Index = () => {res.list = res.list?.filter((v) => {// delete answers pnly show to author and admin and has searchparams aidif (v.status === 10) {- if ((isAuthor || isAdmin) && aid === v.id) {+ if (+ (v?.user_info.username === userInfo?.username || isAdmin) &&+ aid === v.id+ ) {return v;}return null;