Skip to content

Commit a789359

Browse files
committed
options for "extended-option" needs to be a map with value and label
1 parent 40c48b9 commit a789359

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,11 @@ class Plugin {
906906
subtitle: "Enter the traveler's country of origin",
907907
type: "extended-option",
908908
isPerUnitItem: false,
909-
options: ORIGIN_COUNTRIES,
909+
options: ORIGIN_COUNTRIES.reduce(function(map, obj) {
910+
map[value] = obj;
911+
map[label] = obj;
912+
return map;
913+
}, {}),
910914
})
911915

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

0 commit comments

Comments
 (0)