From aed48da63250159eb9f09dc0b479350e2ef70deb Mon Sep 17 00:00:00 2001 From: romainvalls Date: Wed, 3 Jan 2024 14:04:22 +0100 Subject: [PATCH] front: fix rs traction mode update after edition in rseditor --- .../components/RollingStockCard/RollingStockCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/modules/rollingStock/components/RollingStockCard/RollingStockCard.tsx b/front/src/modules/rollingStock/components/RollingStockCard/RollingStockCard.tsx index 9ae4e3f910a..6fec55a2e05 100644 --- a/front/src/modules/rollingStock/components/RollingStockCard/RollingStockCard.tsx +++ b/front/src/modules/rollingStock/components/RollingStockCard/RollingStockCard.tsx @@ -51,7 +51,7 @@ const RollingStockCard = ({ } }); return { ...localModes, voltages: localVoltages }; - }, []); + }, [rollingStock.effort_curves.modes]); function displayCardDetail() { if (!isOpen) {