forked from github/dataease
fix(仪表板): 修复联动中时间空值导致联动报错问题
This commit is contained in:
parent
883a4797c3
commit
b6accf53e1
@ -1,4 +1,7 @@
|
||||
export const getRange = (selectValue, timeGranularity) => {
|
||||
if (new Date(selectValue).toString() === 'Invalid Date') {
|
||||
return selectValue
|
||||
}
|
||||
switch (timeGranularity) {
|
||||
case 'year':
|
||||
case 'y':
|
||||
|
Loading…
Reference in New Issue
Block a user