diff --git a/.circleci/config.yml b/.circleci/config.yml index d2122a4f2..331c4b4b4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -87,7 +87,7 @@ jobs: echo $COMMAND eval $COMMAND - store_test_results: - path: ~/test_results/rspec.xml + path: ~/test_results lint: <<: *defaults steps: diff --git a/app/javascript/new_design/select2.js b/app/javascript/new_design/select2.js index 7a82b9115..ca55d1dd9 100644 --- a/app/javascript/new_design/select2.js +++ b/app/javascript/new_design/select2.js @@ -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 }; } }