Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SISMONDI Federico
gui
Commits
92f4eee6
Commit
92f4eee6
authored
Jun 04, 2018
by
Loic Baron
Browse files
Fixed address as Resources Location
(cherry picked from commit b7d223e54ad42dfc8ce67399ae169bce79567f60)
parent
3af6e728
Pipeline
#580
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
myslice/web/static/js/src/stores/finterop/RegisterResource.js
View file @
92f4eee6
...
...
@@ -118,9 +118,11 @@ class RegisterResourceStore {
hasCity
(
location
){
if
(
Object
.
keys
(
this
.
location
).
length
>
0
){
for
(
let
type
of
location
.
types
){
if
(
type
==
"
locality
"
){
return
true
;
for
(
let
component
of
location
.
address_components
){
for
(
let
type
of
component
.
types
){
if
(
type
==
"
locality
"
){
return
true
;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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