Changes
This commit is contained in:
parent
0cf1ae2ddd
commit
44ef7018ba
|
|
@ -22,7 +22,7 @@ class DashboardController extends Controller
|
||||||
{
|
{
|
||||||
$reports = $this->getlambda('get', 'metric', 'metric_report', 'list');
|
$reports = $this->getlambda('get', 'metric', 'metric_report', 'list');
|
||||||
$widgets = $this->getlambda('get', 'wall', 'widgets', 'list');
|
$widgets = $this->getlambda('get', 'wall', 'widgets', 'list');
|
||||||
return view('index')->with(['metrics' => $reports->data->metrics, 'widgets' => $widgets->data->widgets]);
|
return view('index')->with(['metrics' => isset($reports->data->metrics) ? $reports->data->metrics : [], 'widgets' => $widgets->data->widgets]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue