Skip to content

Commit b94c03f

Browse files
committed
feature: remove defaultAiQuestions from the inline_component
1 parent ed39270 commit b94c03f

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

clients/trieve-shopify-extension/extensions/global-search/blocks/inline_component.liquid

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@
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
}
@@ -154,12 +149,6 @@
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
}

0 commit comments

Comments
 (0)