diff --git a/crates/bevy_render/src/extract_component.rs b/crates/bevy_render/src/extract_component.rs index da027ebf0f..64e744775f 100644 --- a/crates/bevy_render/src/extract_component.rs +++ b/crates/bevy_render/src/extract_component.rs @@ -207,7 +207,7 @@ fn extract_components( if let Some(component) = C::extract_component(query_item) { values.push((entity, component)); } else { - commands.entity(entity).remove::(); + commands.entity(entity).remove::(); } } *previous_len = values.len(); @@ -226,7 +226,7 @@ fn extract_visible_components( if let Some(component) = C::extract_component(query_item) { values.push((entity, component)); } else { - commands.entity(entity).remove::(); + commands.entity(entity).remove::(); } } }