Skip to content
Snippets Groups Projects
Commit 82c33196 authored by esikkala's avatar esikkala
Browse files

Fix popup

parent e2c58a55
No related branches found
No related tags found
No related merge requests found
...@@ -771,7 +771,7 @@ class LeafletMap extends React.Component { ...@@ -771,7 +771,7 @@ class LeafletMap extends React.Component {
<p><b>${intl.get(`perspectives.${perspectiveID}.properties.collectionYear.label`)}</b>: ${data.collectionYear}</p>` <p><b>${intl.get(`perspectives.${perspectiveID}.properties.collectionYear.label`)}</b>: ${data.collectionYear}</p>`
} }
if (has(data, 'source')) { if (has(data, 'source')) {
if (has(data, 'namesArchiveLink')) { if (data.namesArchiveLink !== '-') {
popUpTemplate += ` popUpTemplate += `
<p><b>${intl.get(`perspectives.${perspectiveID}.properties.source.label`)}</b>: <p><b>${intl.get(`perspectives.${perspectiveID}.properties.source.label`)}</b>:
<a href="${data.namesArchiveLink}" target="_blank">${data.source}</a></p>` <a href="${data.namesArchiveLink}" target="_blank">${data.source}</a></p>`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment