potential question fix

This commit is contained in:
pablodanswer
2025-01-31 14:45:31 -08:00
committed by Evan Lohn
parent 23bf50b90a
commit e3e855c526

View File

@@ -251,9 +251,13 @@ export const AgenticMessage = ({
: docs
}
subQuestions={
isViewingInitialAnswer
? subQuestions || []
: [...(subQuestions || []), ...(secondLevelSubquestions || [])]
(isViewingInitialAnswer
? subQuestions && subQuestions.length > 0
? subQuestions
: secondLevelSubquestions
: secondLevelSubquestions && secondLevelSubquestions.length > 0
? secondLevelSubquestions
: subQuestions) || undefined
}
openQuestion={openQuestion}
>