diff --git a/crates/re_viewport_blueprint/src/container.rs b/crates/re_viewport_blueprint/src/container.rs index 1384c03ed8ef..108c2a157572 100644 --- a/crates/re_viewport_blueprint/src/container.rs +++ b/crates/re_viewport_blueprint/src/container.rs @@ -56,10 +56,12 @@ impl ContainerBlueprint { .iter() .copied(), ); - let Some(container_kind) = results.get_instance::(resolver, 0) else { - re_log::error!("Container {id:?} is lacking the required `ContainerKind` component."); - return None; - }; + + // This is a required component. Note that when loading containers we crawl the subtree and so + // cleared empty container paths may exist transiently. The fact that they have an empty container_kind + // is the marker that the have been cleared and not an error. + let container_kind = results.get_instance::(resolver, 0)?; + let blueprint_archetypes::ContainerBlueprint { container_kind, display_name, diff --git a/crates/re_viewport_blueprint/src/space_view.rs b/crates/re_viewport_blueprint/src/space_view.rs index 7650009c6ddd..d59c3c1c2dd9 100644 --- a/crates/re_viewport_blueprint/src/space_view.rs +++ b/crates/re_viewport_blueprint/src/space_view.rs @@ -133,14 +133,11 @@ impl SpaceViewBlueprint { .copied(), ); - let Some(class_identifier) = - results.get_instance::(resolver, 0) - else { - re_log::error!( - "View blueprint at {id:?} is lacking the required `SpaceViewClass` component." - ); - return None; - }; + // This is a required component. Note that when loading space-views we crawl the subtree and so + // cleared empty space-views paths may exist transiently. The fact that they have an empty class_identifier + // is the marker that the have been cleared and not an error. + let class_identifier = + results.get_instance::(resolver, 0)?; let blueprint_archetypes::SpaceViewBlueprint { class_identifier,