Fix running of duplicite queries when clicking on Older logs button (#33992)

This commit is contained in:
Ivana Huckova
2021-05-12 14:08:57 +02:00
committed by GitHub
parent 3b06f52bab
commit 25bb290d36
@@ -98,9 +98,10 @@ function LogsNavigation({
from: pages[currentPageIndex + 1].queryRange.from, from: pages[currentPageIndex + 1].queryRange.from,
to: pages[currentPageIndex + 1].queryRange.to, to: pages[currentPageIndex + 1].queryRange.to,
}); });
} else {
//If we are on the last page, create new range
changeTime({ from: visibleRange.from - rangeSpanRef.current, to: visibleRange.from });
} }
//If we are on the last page, create new range
changeTime({ from: visibleRange.from - rangeSpanRef.current, to: visibleRange.from });
}} }}
disabled={loading} disabled={loading}
> >