Skip to content

Commit

Permalink
Don't rely on the softwareSystemId property (this is now excluded fro…
Browse files Browse the repository at this point in the history
…m the JSON produced by the Structurizr web API).
  • Loading branch information
simonbrowndotje committed Dec 24, 2019
1 parent 21352c9 commit 67c7252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Structurizr.Core/View/ViewSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ public void Hydrate()

foreach (ComponentView view in _componentViews)
{
view.SoftwareSystem = Model.GetSoftwareSystemWithId(view.SoftwareSystemId);
view.Container = view.SoftwareSystem.GetContainerWithId(view.ContainerId);
view.Container = (Container)Model.GetElement(view.ContainerId);
view.SoftwareSystem = view.Container.SoftwareSystem;
HydrateView(view);
}

Expand Down

0 comments on commit 67c7252

Please sign in to comment.