Skip to content

Commit

Permalink
fix: 数值填充-1
Browse files Browse the repository at this point in the history
  • Loading branch information
yxh01132861 committed Oct 23, 2023
1 parent 000412b commit b220eac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const getScaleByCustomMappingData = (val: CustomMappingData) => {

if (type === 'number') {
const range = list.map((item) => item.color);
const _val = list.map((item, index) => (index === list.length - 1 ? Number(item.value[0]) : Number(item.value[1])));
const _val = list.map((item) => Number(item.value[1])).slice(0, -1);

const scaleValue: SelectorValue = {
isCustom: true,
Expand Down

0 comments on commit b220eac

Please sign in to comment.