From 7b46f86f7fc8c9a5b4ea2806abc5c702a88c506e Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Tue, 9 Jan 2024 17:47:23 +0530 Subject: [PATCH] [Refactor]: resolve the wrong payload in timeseries log explorer issue (#4345) Co-authored-by: Vikrant Gupta <54737045+Vikrant2520@users.noreply.github.com> --- frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts b/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts index d3796f96cf..c874f5e6db 100644 --- a/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts +++ b/frontend/src/hooks/queryBuilder/useGetExplorerQueryRange.ts @@ -32,7 +32,7 @@ export const useGetExplorerQueryRange = ( const isEnabled = useMemo(() => { if (!options) return isEnabledQuery; if (typeof options.enabled === 'boolean') { - return isEnabledQuery || options.enabled; + return isEnabledQuery && options.enabled; } return isEnabledQuery;