Skip to content

Commit cf24f19

Browse files
committed
front: bump ui from 0.0.59 to 0.0.61 except ui core
Signed-off-by: theocrsb <theo_crosbie@yahoo.fr>
1 parent 0e377b3 commit cf24f19

File tree

3 files changed

+50
-50
lines changed

3 files changed

+50
-50
lines changed

front/package-lock.json

+40-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
1010
"@osrd-project/netzgrafik-frontend": "0.0.0-snapshot.37949a66933e8e1552c9b8e54f702ec491afd415",
1111
"@osrd-project/ui-core": "^0.0.59",
12-
"@osrd-project/ui-icons": "^0.0.59",
13-
"@osrd-project/ui-manchette": "^0.0.59",
14-
"@osrd-project/ui-manchette-with-spacetimechart": "^0.0.59",
15-
"@osrd-project/ui-spacetimechart": "^0.0.59",
16-
"@osrd-project/ui-speedspacechart": "^0.0.59",
12+
"@osrd-project/ui-icons": "^0.0.61",
13+
"@osrd-project/ui-manchette": "^0.0.61",
14+
"@osrd-project/ui-manchette-with-spacetimechart": "^0.0.61",
15+
"@osrd-project/ui-spacetimechart": "^0.0.61",
16+
"@osrd-project/ui-speedspacechart": "^0.0.61",
1717
"@react-pdf/renderer": "^4.1.6",
1818
"@redux-devtools/extension": "^3.3.0",
1919
"@reduxjs/toolkit": "^2.5.0",

front/src/modules/simulationResult/components/SpeedSpaceChart/helpers.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,14 @@ const formatMrsp = (mrsp: SimulationResponseSuccess['mrsp']) => ({
101101
});
102102

103103
export const formatStops = (operationalPoints: PathPropertiesFormatted['operationalPoints']) =>
104-
operationalPoints.map(({ position, extensions: { identifier, sncf } = {} }) => ({
104+
operationalPoints.map(({ position, weight, extensions: { identifier, sncf } = {} }) => ({
105105
position: {
106106
start: mmToKm(position),
107107
},
108-
value: identifier ? `${identifier.name} ${sncf ? sncf.ch : ''}` : '',
108+
value: {
109+
name: identifier ? `${identifier.name} ${sncf ? sncf.ch : ''}` : '',
110+
weight,
111+
},
109112
}));
110113

111114
export const formatElectrifications = (

0 commit comments

Comments
 (0)