fix kanban show more

This commit is contained in:
Yuri Kuznetsov
2024-07-17 00:07:57 +03:00
parent ddd9a1dc88
commit b2d31d0230

View File

@@ -56,9 +56,16 @@ class GetData implements ActionAlias
$result = $this->service->getData($entityType, $searchParams);
$list = [];
foreach ($result->getGroups() as $group) {
$list = [...$list, ...$group->collection->getValueMapList()];
}
return ResponseComposer::json([
'total' => $result->getTotal(),
'groups' => array_map(fn ($it) => $it->toRaw(), $result->getGroups()),
'list' => $list,
]);
}
}