From 8a37d3f1ef0f0e08051925450f2666c00ce6e09f Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Tue, 15 Jul 2025 18:23:39 +0330 Subject: [PATCH] fix: agents filtering problem in send product draft --- components/profile/SelectAgentModal.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/profile/SelectAgentModal.vue b/components/profile/SelectAgentModal.vue index 27c3901..7fa3b3f 100644 --- a/components/profile/SelectAgentModal.vue +++ b/components/profile/SelectAgentModal.vue @@ -108,15 +108,19 @@ export default { return this.agents.filter(item => { // Handle new representation_type format (array) if (Array.isArray(item.representation_type)) { + if (item.representation_type.includes('both')) return true; if (this.draft.db_name === 'verity') { return ( item.representation_type.includes('mobile_accessories') || item.representation_type.includes('computer_accessories') || - item.representation_type.includes('memory_products') + item.representation_type.includes('memory_products') || + item.representation_type.includes('verity') ) } else if (this.draft.db_name === 'panatech') { return ( - item.representation_type.includes('car_audio_video') || item.representation_type.includes('home_products') + item.representation_type.includes('car_audio_video') || + item.representation_type.includes('home_products') || + item.representation_type.includes('panatech') ) } }