Merge pull request #4712 from betagouv/dev

2020-01-28-01
This commit is contained in:
Keirua 2020-01-28 08:54:49 +01:00 committed by GitHub
commit c17ae662fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View file

@ -87,7 +87,7 @@ jobs:
echo $COMMAND
eval $COMMAND
- store_test_results:
path: ~/test_results/rspec.xml
path: ~/test_results
lint:
<<: *defaults
steps:

View file

@ -122,12 +122,16 @@ const adresseOptions = {
};
},
processResults(data) {
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: data.features.map(({ properties: { label }, geometry }) => ({
id: label,
text: label,
geometry
}))
results: r
};
}
}