Set consecutive keys for dashboard items array. Fix JS error when printing imported dashboard
This commit is contained in:
parent
57b50e4c85
commit
9733ac8717
|
@ -1229,7 +1229,7 @@ class Manager implements PublicLogin
|
|||
}
|
||||
|
||||
if (empty($cells) === false) {
|
||||
$result = array_reduce(
|
||||
$result = array_values(array_reduce(
|
||||
$cells,
|
||||
function ($carry, $item) {
|
||||
$carry[$item['order']]['id'] = $item['id'];
|
||||
|
@ -1239,7 +1239,7 @@ class Manager implements PublicLogin
|
|||
return $carry;
|
||||
},
|
||||
[]
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
echo json_encode($result);
|
||||
|
|
Loading…
Reference in New Issue