diff --git a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs index d72c196e6f3a646ec6985da39dd8a58fef454ecb..1db29ff4cf10f942539e1ac1aa6b49545347f05f 100644 --- a/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs +++ b/VectoCore/VectoCore/OutputData/FileIO/JSONFileWriter.cs @@ -1160,9 +1160,10 @@ public class JSONFileWriter : IOutputFileWriter if (job.Vehicle.Components.GearboxInputData != null) { body.Add("GearboxFile", GetRelativePath(input.JobInputData.Vehicle.Components.GearboxInputData.DataSource.SourceFile, basePath)); - if (input.DriverInputData.GearshiftInputData != null && !job.SavedInDeclarationMode) { - body.Add("TCU", GetRelativePath(input.DriverInputData.GearshiftInputData.Source, basePath)); - } + + } + if (input.DriverInputData.GearshiftInputData != null && !job.SavedInDeclarationMode) { + body.Add("TCU", GetRelativePath(input.DriverInputData.GearshiftInputData.Source, basePath)); } if (!job.SavedInDeclarationMode && job.Vehicle.VehicleType == VectoSimulationJobType.IEPC_S) {