Skip to content

Commit

Permalink
Tidy up one more local arg (unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jul 26, 2024
1 parent 34bbc90 commit 95f748a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/views/controllers/observations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 95f748a

Please sign in to comment.