Use the default view for metrics, as expected

This commit is contained in:
James Brooks
2017-12-03 11:40:17 +00:00
parent 6d64ea8f12
commit a7c00626e6

View File

@@ -131,7 +131,7 @@ class StatusPageController extends AbstractApiController
*/
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) {