mirror of
https://github.com/apache/superset.git
synced 2026-06-03 06:39:25 +00:00
[fix] TimeTable timelag error (#8619)
This commit is contained in:
committed by
Maxime Beauchemin
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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user