Commit 8eb0de0e authored by Raphael Das Gupta's avatar Raphael Das Gupta
Browse files

Merge branch 'hotfix/opening_url-undefined' into develop

parents d3b759a4 13bb5893
Pipeline #95983389 passed with stages
in 9 minutes and 51 seconds
...@@ -129,7 +129,9 @@ function createDetailTags(businessPOI) { ...@@ -129,7 +129,9 @@ function createDetailTags(businessPOI) {
if (businessPOI.details.opening_hours.length !== 0) { if (businessPOI.details.opening_hours.length !== 0) {
text += `<tag k="opening_hours" v="${businessPOI.details.opening_hours}"/>`; text += `<tag k="opening_hours" v="${businessPOI.details.opening_hours}"/>`;
} }
if (businessPOI.opening_url.length !== 0) { // TODO: Find out why `opening_url` has to be treated differently
// than the other properties of `businessPOI.details`.
if (businessPOI.details.opening_url) { // if opening_url is neither undefined nor empty
text += `<tag k="opening_hours:url" v="${businessPOI.details.opening_url}"/>`; text += `<tag k="opening_hours:url" v="${businessPOI.details.opening_url}"/>`;
} }
if (businessPOI.details.phone.length !== 0) { if (businessPOI.details.phone.length !== 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment