mirror of https://gitee.com/answerdev/answer.git
Merge pull request #262 from answerdev/feat/1.0.7/ui
fix: closed question hidden write answer
This commit is contained in:
commit
f2610a5c47
|
@ -240,15 +240,17 @@ const Index = () => {
|
|||
</div>
|
||||
)}
|
||||
|
||||
{!isLoading && !question?.operation?.type && (
|
||||
<WriteAnswer
|
||||
data={{
|
||||
qid,
|
||||
answered: question?.answered,
|
||||
}}
|
||||
callback={writeAnswerCallback}
|
||||
/>
|
||||
)}
|
||||
{!isLoading &&
|
||||
Number(question?.status) !== 2 &&
|
||||
!question?.operation?.type && (
|
||||
<WriteAnswer
|
||||
data={{
|
||||
qid,
|
||||
answered: question?.answered,
|
||||
}}
|
||||
callback={writeAnswerCallback}
|
||||
/>
|
||||
)}
|
||||
</Col>
|
||||
<Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0">
|
||||
<RelatedQuestions id={question?.id || ''} />
|
||||
|
|
Loading…
Reference in New Issue