commit
c17ae662fb
2 changed files with 10 additions and 6 deletions
|
@ -87,7 +87,7 @@ jobs:
|
|||
echo $COMMAND
|
||||
eval $COMMAND
|
||||
- store_test_results:
|
||||
path: ~/test_results/rspec.xml
|
||||
path: ~/test_results
|
||||
lint:
|
||||
<<: *defaults
|
||||
steps:
|
||||
|
|
|
@ -122,12 +122,16 @@ const adresseOptions = {
|
|||
};
|
||||
},
|
||||
processResults(data) {
|
||||
return {
|
||||
results: data.features.map(({ properties: { label }, geometry }) => ({
|
||||
let r = data.features.map(({ properties: { label }, geometry }) => ({
|
||||
id: label,
|
||||
text: label,
|
||||
geometry
|
||||
}))
|
||||
}));
|
||||
// Allow the user to select an arbitrary address missing from the results,
|
||||
// by adding the plain-text query to the list of results.
|
||||
r.unshift({ id: data.query, text: data.query });
|
||||
return {
|
||||
results: r
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue