Skip to content

Commit

Permalink
Use the default view for metrics, as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Dec 3, 2017
1 parent 6d64ea8 commit a7c0062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/StatusPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function showSchedule(Schedule $schedule)
*/
public function getMetrics(Metric $metric)
{
$type = Binput::get('filter', 'last_hour');
$type = Binput::get('filter', AutoPresenter::decorate($metric)->view_name);
$metrics = app(MetricRepository::class);

switch ($type) {
Expand Down

0 comments on commit a7c0062

Please sign in to comment.