From 25bb290d36fc7d489fa1e14973776fca87f8bccf Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Wed, 12 May 2021 14:08:57 +0200 Subject: [PATCH] Fix running of duplicite queries when clicking on Older logs button (#33992) --- public/app/features/explore/LogsNavigation.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/app/features/explore/LogsNavigation.tsx b/public/app/features/explore/LogsNavigation.tsx index 37249b6c8fc..98772edfe98 100644 --- a/public/app/features/explore/LogsNavigation.tsx +++ b/public/app/features/explore/LogsNavigation.tsx @@ -98,9 +98,10 @@ function LogsNavigation({ from: pages[currentPageIndex + 1].queryRange.from, 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} >