Lattice Grid Buy a licence

The grid (core) ยท console.warn

tree is configured with neither `path` nor `parentKey`; rows stay flat.

Printed by The grid (core), prefixed [lattice], since 1.4.0.

Warnings referencetree.shape

Identifier
tree.shape
Raised by
The grid (core)
Since
1.4.0

What happened

A tree block has to say how the hierarchy is derived - a path per row, or a parent key per row. With neither there is nothing to build, so the rows render flat. Silently rendering a flat list is how a misconfiguration goes unnoticed for a week.

The fix

Supply tree.path (a function returning the ancestry as an array) or tree.parentKey.

The smallest fix

createGrid(el, { rowKey: 'id', tree: { parentKey: 'managerId' } });

Reference

Covered in full at the API reference.