mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[fix] TimeTable timelag error (#8619)
This commit is contained in:
parent
aafbfd3b4e
commit
b34c9d36ba
@ -165,8 +165,8 @@ class TimeTable extends React.PureComponent {
|
||||
// Time lag ratio
|
||||
const { timeLag } = column;
|
||||
const totalLag = Object.keys(reversedEntries).length;
|
||||
if (timeLag > totalLag) {
|
||||
errorMsg = `The time lag set at ${timeLag} exceeds the length of data at ${reversedEntries.length}. No data available.`;
|
||||
if (timeLag >= totalLag) {
|
||||
errorMsg = `The time lag set at ${timeLag} is too large for the length of data at ${reversedEntries.length}. No data available.`;
|
||||
} else {
|
||||
v = reversedEntries[timeLag][valueField];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user