Describe the bug
The popups on the map are set up to show an image, if there is one set for that place (via the photo_url field); if the value is null then it will not (see this code in Popup.jsxhere).
This works when you press on a marker point on the map:
However, when you press on a story card in the sidebar -- which causes the map to navigate to the related Place and open up the popup -- if there is no photo, it still inserts an empty <img> tag.
To Reproduce
Steps to reproduce the behavior:
Open the Terrastories map view
Press on a marker for a Place that does not have a photo
You will not see an <img> tag
Now, press on a Story that is linked to that Place
You will see the empty <img> tag in the Popup
Expected behavior
If there is no image in the Place photo_url field, it should not insert an <img> tag in the popup when you press a story card, much like it doesn't when you press a marker and open a popup that way.
Describe the bug The popups on the map are set up to show an image, if there is one set for that place (via the
photo_url
field); if the value is null then it will not (see this code inPopup.jsx
here).This works when you press on a marker point on the map:
However, when you press on a story card in the sidebar -- which causes the map to navigate to the related Place and open up the popup -- if there is no photo, it still inserts an empty
<img>
tag.To Reproduce Steps to reproduce the behavior:
<img>
tag<img>
tag in the PopupExpected behavior If there is no image in the Place
photo_url
field, it should not insert an<img>
tag in the popup when you press a story card, much like it doesn't when you press a marker and open a popup that way.