From b220eaccbebb103610e3c75700ef5d6207b0ce88 Mon Sep 17 00:00:00 2001 From: yxh01132861 Date: Mon, 23 Oct 2023 11:09:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E5=80=BC=E5=A1=AB=E5=85=85-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../li-p2/src/LayerAttribute/components/ScaleSelector/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/li-p2/src/LayerAttribute/components/ScaleSelector/helper.ts b/packages/li-p2/src/LayerAttribute/components/ScaleSelector/helper.ts index b5031cdb..01aec9d8 100644 --- a/packages/li-p2/src/LayerAttribute/components/ScaleSelector/helper.ts +++ b/packages/li-p2/src/LayerAttribute/components/ScaleSelector/helper.ts @@ -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,