Skip to content

Commit

Permalink
Fix problem with timeseries
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Aug 16, 2022
1 parent 7fd7141 commit d32db79
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { SUPPORTED_FORMATTERS } from '../formatters';
import { convertSplitFilters } from '../split_chart';
import { convertMetrics, convertFilter } from '../metrics';
import type { Panel, Series } from '../../../../common/types';
import { TIME_RANGE_DATA_MODES } from '../../../../common/enums';
import { PANEL_TYPES, TIME_RANGE_DATA_MODES } from '../../../../common/enums';
import { getUISettings } from '../../../services';
import { VisSeries } from '../series';

Expand Down Expand Up @@ -82,7 +82,8 @@ export const getLayerConfiguration = (
layer,
metricsArray,
filter,
model.time_range_mode === TIME_RANGE_DATA_MODES.LAST_VALUE
model.time_range_mode === TIME_RANGE_DATA_MODES.LAST_VALUE &&
model.type !== PANEL_TYPES.TIMESERIES
? getWindow(model.interval, timeRange)
: undefined
);
Expand Down

0 comments on commit d32db79

Please sign in to comment.