Skip to content

Commit

Permalink
prepublishOnly build
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Dec 7, 2018
1 parent e06bbe7 commit a5908c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ var getValueFromModel = function getValueFromModel(model, key) {
};

var getTitleByValue = function getTitleByValue(titleMap, value) {
for (var i = titleMap.length; i >= 0; i -= 1) {
for (var i = 0; i < titleMap.length; i += 1) {
var item = titleMap[i];
if (item.value === value) return item.name;
}
Expand Down

0 comments on commit a5908c2

Please sign in to comment.