Merge pull request #9517 from dataease/pr@dev@fix_linkage

fix(仪表板): 修复联动中时间空值导致联动报错问题
This commit is contained in:
王嘉豪 2024-05-08 07:04:11 +08:00 committed by GitHub
commit e84f8a0428
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,7 @@
export const getRange = (selectValue, timeGranularity) => {
if (new Date(selectValue).toString() === 'Invalid Date') {
return selectValue
}
switch (timeGranularity) {
case 'year':
case 'y':