Skip to content

Commit

Permalink
Fixed: logic to select multiple values for order filters(#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Feb 14, 2024
1 parent 9cca11e commit 1e1c171
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
"sales channel": "sales channel",
"select days": "select days",
"select range": "select range",
"selected": "selected",
"shipping method": "shipping method",
"The timezone you select is used to ensure automations you schedule are always accurate to the time you select.": "The timezone you select is used to ensure automations you schedule are always accurate to the time you select.",
"Timezone": "Timezone",
Expand Down
4 changes: 2 additions & 2 deletions src/views/BrokeringQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,9 @@ function getSelectedValue(options: any, enums: any, parameter: string) {
// If having more than 1 value selected then displaying the count of selected value otherwise returning the facilityName of the selected facility
if(value?.length > 1) {
return `${value.length} selected`
return `${value.length} ${translate("selected")}`
} else {
return facilities.value[value[0]].facilityName || value[0]
return parameter === "SHIPPING_METHOD" ? shippingMethods.value[value[0]].description || value[0] : facilities.value[value[0]].facilityName || value[0]
}
}
Expand Down

0 comments on commit 1e1c171

Please sign in to comment.