From b2da92c5a24f793e288bf9433063ac6b1f8c427d Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 26 Sep 2024 10:59:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A0=86=E5=8F=A0=E6=9D=A1=E5=BD=A2=E5=9B=BE=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=8C=87=E6=A0=87=E5=AD=97=E6=AE=B5=E5=90=8E=EF=BC=8C=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=86=8D=E6=8B=96=E5=85=A5=E5=85=B6=E4=BB=96=E6=8C=87?= =?UTF-8?q?=E6=A0=87=E5=AD=97=E6=AE=B5=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/bar/horizontal-bar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts index a11bfee2b7..caad5f4406 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts @@ -360,7 +360,7 @@ export class HorizontalStackBar extends HorizontalBar { if (mainSort || subSort) { return options } - const quotaSort = yAxis?.[0].sort !== 'none' + const quotaSort = yAxis?.[0]?.sort !== 'none' if (!quotaSort || !extStack.length || !yAxis.length) { return options }