Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff043b4

Browse files
committed
Fix another problem in getCategoryIndex
1 parent 153f547 commit ff043b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/set_convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = function setConvert(ax, fullLayout) {
149149
// allow numbers to be mapped to the linearized axis positions
150150
var index;
151151
if(ax._categoriesMap) {
152-
index = ax._categoriesMap[v] ? ax._categoriesMap : undefined;
152+
index = ax._categoriesMap[v];
153153
if(index !== undefined) return index;
154154
} else {
155155
index = ax._categories.indexOf(v);

0 commit comments

Comments
 (0)