fix: time preference from the panel should be used to fetch data (#4836)

This commit is contained in:
Yunus M 2024-04-09 11:05:49 +05:30 committed by GitHub
parent d6cd155988
commit 872ed9e963
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ function FullView({
return {
query: updatedQuery,
graphType: PANEL_TYPES.LIST,
selectedTime: 'GLOBAL_TIME',
selectedTime: widget?.timePreferance || 'GLOBAL_TIME',
globalSelectedInterval: globalSelectedTime,
tableParams: {
pagination: {

View File

@ -106,7 +106,7 @@ function GridCardGraph({
return {
query: updatedQuery,
graphType: PANEL_TYPES.LIST,
selectedTime: 'GLOBAL_TIME',
selectedTime: widget.timePreferance || 'GLOBAL_TIME',
globalSelectedInterval,
tableParams: {
pagination: {
@ -121,7 +121,7 @@ function GridCardGraph({
{
...requestData,
variables: getDashboardVariables(variables),
selectedTime: 'GLOBAL_TIME',
selectedTime: widget.timePreferance || 'GLOBAL_TIME',
globalSelectedInterval,
},
version || DEFAULT_ENTITY_VERSION,