Skip to content

Commit

Permalink
options for "extended-option" needs to be a map with value and label
Browse files Browse the repository at this point in the history
  • Loading branch information
shintre committed Jul 18, 2024
1 parent 40c48b9 commit a789359
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,11 @@ class Plugin {
subtitle: "Enter the traveler's country of origin",
type: "extended-option",
isPerUnitItem: false,
options: ORIGIN_COUNTRIES,
options: ORIGIN_COUNTRIES.reduce(function(map, obj) {
map[value] = obj;
map[label] = obj;
return map;
}, {}),
})

addCustomField(CUSTOM_FIELD_IDS.TRAVELAGENCY, "Entry Travel Agency", "Enter the travel agency name", "short");
Expand Down

0 comments on commit a789359

Please sign in to comment.