From c9181000ab44c2f413c4f175f11b814e8b3c7365 Mon Sep 17 00:00:00 2001 From: antoineatrhea Date: Wed, 11 Jan 2023 11:12:44 +0100 Subject: [PATCH] Diagram is also initializes when copying component:Fix #252 --- .../Components/NormalUser/Views/PhysicalFlowView.razor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI_DSM.Client/Components/NormalUser/Views/PhysicalFlowView.razor.cs b/UI_DSM.Client/Components/NormalUser/Views/PhysicalFlowView.razor.cs index b399a32b..34bd2c9b 100644 --- a/UI_DSM.Client/Components/NormalUser/Views/PhysicalFlowView.razor.cs +++ b/UI_DSM.Client/Components/NormalUser/Views/PhysicalFlowView.razor.cs @@ -96,6 +96,8 @@ public async Task CopyComponents(BaseView otherView) } this.ViewModel = interfaceView.ViewModel; + this.ViewModel.InitializeDiagram(); + this.RefreshDiagram(); await this.HasChanged(); this.IsLoading = false;