mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Show root node for devices.
This commit is contained in:
parent
c6970505c7
commit
28e7e401d4
2 changed files with 6 additions and 2 deletions
|
@ -139,7 +139,7 @@ class TreeController extends AbstractController
|
|||
*/
|
||||
public function deviceTree(?Device $device = null): JsonResponse
|
||||
{
|
||||
$tree = $this->treeGenerator->getTreeView(Device::class, $device, '');
|
||||
$tree = $this->treeGenerator->getTreeView(Device::class, $device, 'devices');
|
||||
|
||||
return new JsonResponse($tree);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue