Skip to content

Commit

Permalink
fix: Fix bug for root elements
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenngn committed Jun 18, 2024
1 parent 4453836 commit 5c07d96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion capellambse_context_diagrams/collectors/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(
def process_context(self):
if (
self.diagram.display_parent_relation
and hasattr(self.diagram.target, "owner")
and getattr(self.diagram.target, "owner", None) is not None
and not isinstance(self.diagram.target.owner, generic.PackageTypes)
):
box = self._make_box(
Expand Down
2 changes: 0 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ Available via `.context_diagram` on a [`ModelObject`][capellambse.model.common.e
<figcaption>Context diagram of PC Software [PAB]</figcaption>
</figure>

* [`pa.PhysicalFunction`][capellambse.model.layers.pa.PhysicalFunction] (PDFB)

- ??? example "[`pa.PhysicalFunction`][capellambse.model.layers.pa.PhysicalFunction] (PDFB)"

``` py
Expand Down

0 comments on commit 5c07d96

Please sign in to comment.