Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Geometa Lab at IFS
OSMyBiz
Commits
8eb0de0e
Commit
8eb0de0e
authored
Nov 14, 2019
by
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
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
frontend/osmybiz/src/util/osmApiUtils.js
frontend/osmybiz/src/util/osmApiUtils.js
+3
-1
No files found.
frontend/osmybiz/src/util/osmApiUtils.js
View file @
8eb0de0e
...
...
@@ -129,7 +129,9 @@ function createDetailTags(businessPOI) {
if
(
businessPOI
.
details
.
opening_hours
.
length
!==
0
)
{
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
}
"/>`
;
}
if
(
businessPOI
.
details
.
phone
.
length
!==
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment