Skip to content

Commit 076ace2

Browse files
committed
fix: fix injection filter in object properties
1 parent f29f202 commit 076ace2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typegraph/graph/src/types/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl ObjectProperty {
2424
pub fn is_injected(&self) -> bool {
2525
self.injection
2626
.as_ref()
27-
.filter(|inj| !inj.is_empty())
27+
.filter(|inj| matches!(inj.as_ref(), InjectionNode::Leaf { .. }))
2828
.is_some()
2929
}
3030
}

0 commit comments

Comments
 (0)