The TreeNode<T> type in frontend/types/TreeNode.ts allows for its content to be null. We should remove that possibility for much more convenience. In order to do so, we should adapt the function categoryEntriesToRoots in frontend/components/category/apiCategories.ts to delay creating parent nodes by temporarily saving the children of a yet to be created parent in a Map.
The
TreeNode<T>
type infrontend/types/TreeNode.ts
allows for its content to benull
. We should remove that possibility for much more convenience. In order to do so, we should adapt the functioncategoryEntriesToRoots
infrontend/components/category/apiCategories.ts
to delay creating parent nodes by temporarily saving the children of a yet to be created parent in a Map.