use default range from time picker

This commit is contained in:
Erik Sundell
2018-11-27 13:13:26 +01:00
parent 109ff1a3e1
commit 1998c08df5
3 changed files with 10 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
this.modifiedQueries = initialQueries.slice();
this.timeSrv = getTimeSrv();
this.timeSrv.init({
time: { from: 'now-6h', to: 'now' },
time: DEFAULT_RANGE,
refresh: false,
getTimezone: () => 'utc',
timeRangeUpdated: () => console.log('refreshDashboard!'),