Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jul 23, 2024
1 parent 5ac9eb5 commit 0798660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EmbedMap/EmbedMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function getHeight(height, screen) {
if (asNumber) {
return `${height}px`;
}
return height || screen.page.height - 50;
return height || (screen ? screen.page.height - 50 : 400);
}

function EmbedMap({ data, intl, id, screen }) {
Expand Down

0 comments on commit 0798660

Please sign in to comment.