From b6accf53e144b0f7cb191da82ece97b9e74c5179 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 8 May 2024 07:03:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=81=94=E5=8A=A8=E4=B8=AD=E6=97=B6=E9=97=B4=E7=A9=BA?= =?UTF-8?q?=E5=80=BC=E5=AF=BC=E8=87=B4=E8=81=94=E5=8A=A8=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/utils/timeUitils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/frontend/src/utils/timeUitils.js b/core/frontend/src/utils/timeUitils.js index 0455d82606..34e2f9a87f 100644 --- a/core/frontend/src/utils/timeUitils.js +++ b/core/frontend/src/utils/timeUitils.js @@ -1,4 +1,7 @@ export const getRange = (selectValue, timeGranularity) => { + if (new Date(selectValue).toString() === 'Invalid Date') { + return selectValue + } switch (timeGranularity) { case 'year': case 'y':