chore: remove location templates

This commit is contained in:
Muhsin Keloth
2025-07-22 17:34:12 +04:00
parent 2357f6ae47
commit a0e2936ab3
4 changed files with 25 additions and 256 deletions
@@ -35,12 +35,14 @@ export default {
return false;
}
// Filter out interactive templates (LIST, PRODUCT, CATALOG)
const hasInteractiveComponents = template.components.some(component =>
['LIST', 'PRODUCT', 'CATALOG'].includes(component.type)
// Filter out interactive templates (LIST, PRODUCT, CATALOG) and location templates
const hasUnsupportedComponents = template.components.some(
component =>
['LIST', 'PRODUCT', 'CATALOG'].includes(component.type) ||
(component.type === 'HEADER' && component.format === 'LOCATION')
);
if (hasInteractiveComponents) {
if (hasUnsupportedComponents) {
return false;
}