Fix Security Groups Subpanel Insight

This commit is contained in:
Jack Anderson 2021-02-19 09:17:36 +00:00 committed by Dillon-Brown
parent 2bee83c82c
commit 0f238f9ef7

View file

@ -25,11 +25,8 @@ class SubpanelDefault extends SubpanelDataQueryHandler implements StatisticsProv
*/
public function getData(array $query): Statistic
{
$subpanel = $query['key'];
if ($subpanel === 'default' && isset($query['params']['subpanel'])) {
$subpanel = $query['params']['subpanel'];
}
$subpanel = $query['params']['subpanel'] ?? $query['key'];
[$module, $id] = $this->extractContext($query);
if (empty($module) || empty($id)) {