diff --git a/app/controllers/users/carte_controller.rb b/app/controllers/users/carte_controller.rb index 855a7dd52..9c952d513 100644 --- a/app/controllers/users/carte_controller.rb +++ b/app/controllers/users/carte_controller.rb @@ -32,7 +32,7 @@ class Users::CarteController < UsersController @dossier = current_user_dossier @data = {} - geo_json = JSON.parse(params.required(:selection)) + geo_json = JSON.parse(params.fetch(:selection, '[]')) if geo_json.first == ["error", "TooManyPolygons"] @error = true