From c9ec9b3d9f2d79e7371bb329601be0f610248e60 Mon Sep 17 00:00:00 2001 From: Devon Thomson Date: Fri, 21 Apr 2023 13:09:40 -0400 Subject: [PATCH] Maps else if for loading by reference OR by value --- x-pack/plugins/maps/public/render_app.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/plugins/maps/public/render_app.tsx b/x-pack/plugins/maps/public/render_app.tsx index 01eba4ee7905e..c4bddf5a71541 100644 --- a/x-pack/plugins/maps/public/render_app.tsx +++ b/x-pack/plugins/maps/public/render_app.tsx @@ -86,8 +86,7 @@ export async function renderApp( mapEmbeddableInput = { savedObjectId: routeProps.match.params.savedMapId, } as MapByReferenceInput; - } - if (valueInput) { + } else if (valueInput) { mapEmbeddableInput = valueInput as MapByValueInput; }