From 67c72528282ae49a037d10b0af33095f98481f41 Mon Sep 17 00:00:00 2001 From: Simon Brown Date: Tue, 24 Dec 2019 15:44:14 +0000 Subject: [PATCH] Don't rely on the softwareSystemId property (this is now excluded from the JSON produced by the Structurizr web API). --- Structurizr.Core/View/ViewSet.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Structurizr.Core/View/ViewSet.cs b/Structurizr.Core/View/ViewSet.cs index ce13ca2..179f712 100644 --- a/Structurizr.Core/View/ViewSet.cs +++ b/Structurizr.Core/View/ViewSet.cs @@ -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); }