Skip to content

Commit

Permalink
refact(data): fix unexpected code removement
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Aug 4, 2021
1 parent 8e6bd68 commit 2bf188f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/component/visualMap/VisualMapModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@ class VisualMapModel<Opts extends VisualMapOption = VisualMapOption> extends Com
return;
}

if (optDim != null) {
return data.getDimension(optDim);
}

const dimNames = data.dimensions;
for (let i = dimNames.length - 1; i >= 0; i--) {
const dimName = dimNames[i];
Expand Down

0 comments on commit 2bf188f

Please sign in to comment.