questionPools/index
@boldpenguin/sdk-redux › Globals › "questionPools/index"
Index
Variables
Variables
Const
getQuestionPoolInActiveQuestionSetByAnswer
• getQuestionPoolInActiveQuestionSetByAnswer: function & OutputSelectorFields‹function› & object = createSelector( getCurrentActiveQuestionSet, (state: BpSdkStore, answer: IAnswer) => answer, (activeQuestionSet, answer) => { if (!activeQuestionSet) { return undefined; } return activeQuestionSet.question_set?.question_pools.find((qp) => qp.parent_question_id === answer.question.id); } )
Returns a Question Pool that is associated with the answer in the current active question set
param
The entire Redux store
param
IAnswer to find pool