diff --git a/app/views/controllers/observations/_form.html.erb b/app/views/controllers/observations/_form.html.erb index 80f2fdb967..d138975e37 100644 --- a/app/views/controllers/observations/_form.html.erb +++ b/app/views/controllers/observations/_form.html.erb @@ -29,13 +29,8 @@ data = { upload_max_size: max_size, localization: image_upload_localization, form_images_target: "form", - exif_used: false + exif_used: create ? false : true } -# used by stimulus to make ajax calls to the right route -if action_name == "edit" - data[:observation_id] = @observation.id - data[:exif_used] = true -end %> <%= form_with(