From 95f748a53531de64ece52ee598ed921e411254f8 Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Thu, 25 Jul 2024 21:45:43 -0700 Subject: [PATCH] Tidy up one more local arg (unused) --- app/views/controllers/observations/_form.html.erb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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(