File tree Expand file tree Collapse file tree
clients/trieve-shopify-extension/extensions/global-search/blocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 if (productMetafieldsTrieve && Object .keys (productMetafieldsTrieve).includes (" trievePDPQuestions" )) {
2020 trievePDPQuestions = productMetafieldsTrieve .trievePDPQuestions ;
2121 }
22- let defaultAiQuestions = {{ block .settings .default_ai_questions | json }};
23- if (defaultAiQuestions && typeof defaultAiQuestions === " string" ) {
24- defaultAiQuestions = defaultAiQuestions .split (" ," ).map ((question ) => question .trim ());
25- } else {
26- defaultAiQuestions = null ;
27- }
22+ let defaultAiQuestions = undefined ;
2823 if (trievePDPQuestions && trievePDPQuestions .length > 0 ) {
2924 defaultAiQuestions = trievePDPQuestions .map ((question ) => question .text );
3025 }
154149 " id" : " open_links_new_tab" ,
155150 " label" : " Open Links in New Tab" ,
156151 " default" : true
157- },
158- {
159- " id" : " default_ai_questions" ,
160- " type" : " textarea" ,
161- " label" : " Initial Questions (Separated by commas)" ,
162- " placeholder" : " What is this made of?"
163152 }
164153 ]
165154}
You can’t perform that action at this time.
0 commit comments