From a5908c23fefe95841b1d34e941b1c2c891f671b3 Mon Sep 17 00:00:00 2001 From: Steve Hu Date: Fri, 7 Dec 2018 09:18:03 -0500 Subject: [PATCH] prepublishOnly build --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 5e9496c8..7d2678ef 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -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; }