diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/Utils/LectotypeManager.cs b/Sinvo.EplanHpD.Plugin.WPFUI/Utils/LectotypeManager.cs index 54fc1e9..3dd9189 100644 --- a/Sinvo.EplanHpD.Plugin.WPFUI/Utils/LectotypeManager.cs +++ b/Sinvo.EplanHpD.Plugin.WPFUI/Utils/LectotypeManager.cs @@ -34,9 +34,9 @@ namespace Sinvo.EplanHpD.Plugin.WPFUI.Utils { var service = new MotorLectotypeService(); var data = service.GetMotorLectotypeData(motor.OccPartId); - if (!string.IsNullOrEmpty(data)) + if (data != null) { - viewModel = Newtonsoft.Json.JsonConvert.DeserializeObject(data); + viewModel = data; } }).Wait();