From 4639f2a85d03b491f66d7f43cc919c9a054f2954 Mon Sep 17 00:00:00 2001 From: xusongfu Date: Mon, 24 Oct 2022 14:28:12 +0800 Subject: [PATCH] fix: The scale of the x-axis is not updated in time fix the scale of x-axis in the monitor chart Closes-Bug: #1993997 Change-Id: Ie512a6eed4bec7794a5423bf0a9126ba16c05533 --- src/components/PrometheusChart/ChartCard.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PrometheusChart/ChartCard.jsx b/src/components/PrometheusChart/ChartCard.jsx index 642dd0ea..ee33f2e2 100644 --- a/src/components/PrometheusChart/ChartCard.jsx +++ b/src/components/PrometheusChart/ChartCard.jsx @@ -40,8 +40,8 @@ const ChartCard = (props) => { scale.x = merge( {}, - getXScale(props.fetchDataParams.currentRange), - scale.x || {} + scale.x || {}, + getXScale(props.fetchDataParams.currentRange) ); let lineProps;