From b9ef53da1221ac77b8885df0eda7440a2eab08b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Genevi=C3=A8ve=20Bastien?= Date: Wed, 8 Jan 2025 10:31:09 -0500 Subject: [PATCH] paths: update layers when TransitPathEdit component is mounted fixes #1178 The upgrade to React 19 seemingly changed the handling of events in such a way that the path selection event is now handled before the `TransitPathEdit` component is mounted, while it was handled after in the React 16 version. So we call the `updateLayers` method at mount to display the selected path. --- .../src/components/forms/path/TransitPathEdit.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/transition-frontend/src/components/forms/path/TransitPathEdit.tsx b/packages/transition-frontend/src/components/forms/path/TransitPathEdit.tsx index c5c8e502..fc053393 100644 --- a/packages/transition-frontend/src/components/forms/path/TransitPathEdit.tsx +++ b/packages/transition-frontend/src/components/forms/path/TransitPathEdit.tsx @@ -101,6 +101,8 @@ class TransitPathEdit extends SaveableObjectForm