[Refactor]: resolve the wrong payload in timeseries log explorer issue (#4345)

Co-authored-by: Vikrant Gupta <54737045+Vikrant2520@users.noreply.github.com>
This commit is contained in:
Rajat Dabade 2024-01-09 17:47:23 +05:30 committed by GitHub
parent 5b39dc36d6
commit 7b46f86f7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;