From 61d51e2b187939927cd7f61b9fa3aebc72883a0a Mon Sep 17 00:00:00 2001 From: Mathieu Date: Wed, 30 Oct 2024 11:57:00 +0100 Subject: [PATCH] chore: update package.json with optional dependencies for mac users Signed-off-by: Mathieu --- front/package.json | 3 +++ .../ManageTrainSchedule/helpers/checkCurrentConfig.ts | 8 +------- front/yarn.lock | 5 +++++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/front/package.json b/front/package.json index 01b666d04ca..6b9ab78d75a 100644 --- a/front/package.json +++ b/front/package.json @@ -151,6 +151,9 @@ "vite-tsconfig-paths": "^5.0.1", "vitest": "^2.0.0" }, + "optionalDependencies": { + "@rollup/rollup-linux-arm64-gnu": "^4.23.0" + }, "resolutions": { "react-error-overlay": "6.0.9", "@nivo/line": "^0.80.0", diff --git a/front/src/modules/trainschedule/components/ManageTrainSchedule/helpers/checkCurrentConfig.ts b/front/src/modules/trainschedule/components/ManageTrainSchedule/helpers/checkCurrentConfig.ts index c5f26948ab0..0f82cf547ed 100644 --- a/front/src/modules/trainschedule/components/ManageTrainSchedule/helpers/checkCurrentConfig.ts +++ b/front/src/modules/trainschedule/components/ManageTrainSchedule/helpers/checkCurrentConfig.ts @@ -145,13 +145,7 @@ const checkCurrentConfig = ( rollingStockComfort, initialSpeed: initialSpeed ? kmhToMs(initialSpeed) : 0, usingElectricalProfiles, - path: compact(pathSteps).map((step) => { - const { id, isInvalid, ...stepLocation } = step; - if ('uic' in stepLocation) { - return { id, uic: stepLocation.uic }; - } - return { id, isInvalid, ...getStepLocation(step) }; - }), + path: compact(pathSteps).map((step) => ({ id: step.id, ...getStepLocation(step) })), margins: formatMargin(compact(pathSteps)), schedule: formatSchedule(compact(pathSteps)), powerRestrictions: powerRestriction, diff --git a/front/yarn.lock b/front/yarn.lock index 6459ccb7903..63a79f81fce 100644 --- a/front/yarn.lock +++ b/front/yarn.lock @@ -1489,6 +1489,11 @@ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.23.0.tgz#1b685e1c219494e39f7441cd6b15fe4779ceda77" integrity sha512-nAbWsDZ9UkU6xQiXEyXBNHAKbzSAi95H3gTStJq9UGiS1v+YVXwRHcQOQEF/3CHuhX5BVhShKoeOf6Q/1M+Zhg== +"@rollup/rollup-linux-arm64-gnu@^4.23.0": + version "4.24.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz#1632990f62a75c74f43e4b14ab3597d7ed416496" + integrity sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA== + "@rollup/rollup-linux-arm64-musl@4.23.0": version "4.23.0" resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.23.0.tgz#a6cf6cdb340abde851b055e6d8785308ef4ace1a"