From 728ed0e5ad2efe5fdf60a52b87cbe6c0692d7a3a Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Mon, 19 Feb 2024 11:13:34 +0530 Subject: [PATCH] Implemented: support to enable multiple selection for sales channel option for routing filters(#116) --- src/views/BrokeringQuery.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index ff04618..960a82e 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -60,7 +60,7 @@ - + {{ enumInfo.description || enumInfo.enumId }} @@ -628,8 +628,8 @@ function getFilterValue(options: any, enums: any, parameter: string) { return options?.[enums[parameter].code] } -function getSelectedValue(options: any, enums: any, parameter: string) { - let value = options?.[enums[parameter].code].fieldValue +function getSelectedValue(options: any, enumerations: any, parameter: string) { + let value = options?.[enumerations[parameter].code].fieldValue // Initially when adding a filter no value is selected thus returning empty string if(!value) { @@ -642,7 +642,7 @@ function getSelectedValue(options: any, enums: any, parameter: string) { if(value?.length > 1) { return `${value.length} ${translate("selected")}` } else { - return parameter === "SHIPPING_METHOD" ? shippingMethods.value[value[0]]?.description || value[0] : facilities.value[value[0]]?.facilityName || value[0] + return parameter === "SHIPPING_METHOD" ? shippingMethods.value[value[0]]?.description || value[0] : parameter === "SALES_CHANNEL" ? enums.value["ORDER_SALES_CHANNEL"][value[0]]?.description || value[0] : facilities.value[value[0]]?.facilityName || value[0] } }