Skip to content

Commit

Permalink
fix interval default value bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MGJamJam committed May 20, 2024
1 parent 021267e commit 39193ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function QueryEditor(props: Props) {
const [selectableLicenses, setSelectableLicenses] = useState<SelectableValue[]>([]);
const [licenseLoadingState, setLicenseLoadingState] = useState<LoadingState>(LoadingState.Default);
const [licenseErrorMessage, setLicenseErrorMessage] = useState('');
const [isTimeSeries, setIsTimeSeries] = useState(true);
const [isTimeSeries, setIsTimeSeries] = useState(!!props.query.interval);
const [isDimensionMetricSelected, setIsDimensionMetricSelected] = useState(false);
const [filterRows, setFilterRows] = useState<FilterRowData[]>([]);

Expand Down
1 change: 0 additions & 1 deletion bitmovin-analytics-datasource/src/types/grafanaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export interface BitmovinAnalyticsDataQuery extends DataQuery {

export const DEFAULT_QUERY: Partial<BitmovinAnalyticsDataQuery> = {
licenseKey: '',
interval: 'AUTO',
orderBy: [],
groupBy: [],
filters: [],
Expand Down

0 comments on commit 39193ad

Please sign in to comment.