Skip to content

Commit

Permalink
fixup! front: fix electrical profiles in csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohh committed Jan 17, 2025
1 parent 1a81603 commit a3fc5e0
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,9 @@ const overloadSteps = (
interpolateValue(trainRegime, mmToM(electricalProfiles.boundaries[index - 1]), 'times') ||
0,
};
if (value.electrical_profile_type === 'profile') {
return {
electrificationProfile: value.profile || '',
...currentTrainRegime,
};
}
return {
electrificationProfile: '',
electrificationProfile:
value.electrical_profile_type === 'profile' ? value.profile || '' : '',
...currentTrainRegime,
};
});
Expand Down

0 comments on commit a3fc5e0

Please sign in to comment.