From 5ebf1e9b393d5f4eebb66217dbab55f9e39ca18c Mon Sep 17 00:00:00 2001 From: hgaol Date: Tue, 12 Dec 2023 16:36:21 +0800 Subject: [PATCH] fix --- ui/src/pages/Questions/Detail/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/Questions/Detail/index.tsx b/ui/src/pages/Questions/Detail/index.tsx index 73f0951bf..39fded6f2 100644 --- a/ui/src/pages/Questions/Detail/index.tsx +++ b/ui/src/pages/Questions/Detail/index.tsx @@ -194,7 +194,9 @@ const Index = () => { setQuestion({ ...question, answered: true, - first_answer_id: obj.id, + first_answer_id: question.first_answer_id + ? question.first_answer_id + : obj.id, }); } };