From 16011b06a34afdd0f914208bd39f3eed58e67c1d Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Mon, 21 Jul 2025 17:36:28 +0400 Subject: [PATCH] fix: Ensure media header templates appear in template selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove format-based filtering that was preventing media templates from showing - Add robust error handling for template loading without console statements - Include comprehensive validation for template properties - Add debug helper method to troubleshoot template visibility issues Previously, templates with media headers (IMAGE, VIDEO, DOCUMENT) were being filtered out even though we removed format restrictions. This fix ensures all approved templates are visible in the template selector regardless of their media format. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../WhatsappTemplates/TemplatesPicker.vue | 48 +++++++++++++++---- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/WhatsappTemplates/TemplatesPicker.vue b/app/javascript/dashboard/components/widgets/conversation/WhatsappTemplates/TemplatesPicker.vue index 4ed02d50b..dd5ad8a2b 100644 --- a/app/javascript/dashboard/components/widgets/conversation/WhatsappTemplates/TemplatesPicker.vue +++ b/app/javascript/dashboard/components/widgets/conversation/WhatsappTemplates/TemplatesPicker.vue @@ -1,6 +1,5 @@