From bfd99468051ec939e651ec8b63aa336f342260f0 Mon Sep 17 00:00:00 2001 From: Aaron Caldwell Date: Wed, 15 Sep 2021 12:18:45 -0600 Subject: [PATCH] [Maps] Fix saved object (map) switching issue (#112001) * Add key to MapPage --- x-pack/plugins/maps/public/render_app.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/maps/public/render_app.tsx b/x-pack/plugins/maps/public/render_app.tsx index c3f13e70fbd5c..de67939b1a42a 100644 --- a/x-pack/plugins/maps/public/render_app.tsx +++ b/x-pack/plugins/maps/public/render_app.tsx @@ -98,6 +98,7 @@ export async function renderApp( setHeaderActionMenu={setHeaderActionMenu} stateTransfer={stateTransfer} originatingApp={originatingApp} + key={routeProps.match.params.savedMapId ? routeProps.match.params.savedMapId : 'new'} /> ); }