Keep normalized View roots acyclic
This commit is contained in:
@@ -58,7 +58,10 @@ export function viewSurfaceCatalogueForModules(
|
||||
for (const surface of module.viewSurfaces ?? []) {
|
||||
addSurface(surfaces, {
|
||||
...surface,
|
||||
parentId: surface.parentId ?? rootId
|
||||
parentId:
|
||||
surface.id === rootId
|
||||
? null
|
||||
: surface.parentId ?? rootId
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user