File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ function initializeChat({onChatLoad, chatAttributes}) {
78
78
}
79
79
80
80
function getProductExampleQuestions ( ) {
81
- const questions = productData ?. product ?. ai_sample_questions || null ;
81
+ const questions = productData ?. product ?. ai_sample_questions ;
82
82
return questions ?. join ( ',' ) || '' ;
83
83
}
84
84
@@ -88,8 +88,10 @@ function getProductExampleQuestions() {
88
88
* userid: optional, a unique user ID for the user (not currently used for public docs)
89
89
*/
90
90
export default function AskAI ( { userid, email, onChatLoad, ...chatParams } ) {
91
+
92
+ const modalExampleQuestions = getProductExampleQuestions ( ) ;
91
93
const chatAttributes = {
92
- modalExampleQuestions : getProductExampleQuestions ( ) ,
94
+ ... ( modalExampleQuestions && { modalExampleQuestions } ) ,
93
95
...chatParams ,
94
96
}
95
97
initializeChat ( { onChatLoad, chatAttributes} ) ;
You can’t perform that action at this time.
0 commit comments