From daebea701d0b2aa1debdbdd387832b3793a518ca Mon Sep 17 00:00:00 2001 From: Danil Nazarenko <134951516+dnazarenkoo@users.noreply.github.com> Date: Fri, 4 Aug 2023 10:31:54 +0300 Subject: [PATCH] fix: remove incorrect API request on the logs explorer page (#3266) --- frontend/src/container/LogsContextList/index.tsx | 1 + frontend/src/container/LogsExplorerViews/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/LogsContextList/index.tsx b/frontend/src/container/LogsContextList/index.tsx index 0433a5f636..7037a386aa 100644 --- a/frontend/src/container/LogsContextList/index.tsx +++ b/frontend/src/container/LogsContextList/index.tsx @@ -103,6 +103,7 @@ function LogsContextList({ PANEL_TYPES.LIST, { keepPreviousData: true, + enabled: !!requestData, onSuccess: handleSuccess, }, ); diff --git a/frontend/src/container/LogsExplorerViews/index.tsx b/frontend/src/container/LogsExplorerViews/index.tsx index d0fb3e4c20..6eb50af93d 100644 --- a/frontend/src/container/LogsExplorerViews/index.tsx +++ b/frontend/src/container/LogsExplorerViews/index.tsx @@ -154,7 +154,7 @@ function LogsExplorerViews(): JSX.Element { panelType, { keepPreviousData: true, - enabled: !isLimit, + enabled: !isLimit && !!requestData, }, { ...(timeRange &&