|
@@ -71,6 +71,7 @@ const generateInitialTreeFromAncestors = (ancestors: Partial<IPage>[], siblings:
|
|
|
*/
|
|
*/
|
|
|
const ItemsTree: FC = () => {
|
|
const ItemsTree: FC = () => {
|
|
|
// TODO: fetch ancestors, siblings using swr
|
|
// TODO: fetch ancestors, siblings using swr
|
|
|
|
|
+ if (ancestors == null) return null;
|
|
|
|
|
|
|
|
// create node tree
|
|
// create node tree
|
|
|
const rootNode = generateInitialTreeFromAncestors(ancestors, targetAndSiblings);
|
|
const rootNode = generateInitialTreeFromAncestors(ancestors, targetAndSiblings);
|