Skip to content

Commit

Permalink
Maps else if for loading by reference OR by value
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Apr 21, 2023
1 parent 3d373ec commit c9ec9b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/maps/public/render_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c9ec9b3

Please sign in to comment.