Skip to content

Commit

Permalink
Updates the re-render of create on a fail to also filter out the deac…
Browse files Browse the repository at this point in the history
…tivated partners
  • Loading branch information
ewoknock committed Sep 3, 2024
1 parent 33053af commit a4de391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/distributions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def create
format.turbo_stream do
flash.now[:error] = flash_error
render turbo_stream: [
turbo_stream.replace(@distribution, partial: "form", locals: {distribution: @distribution, date_place_holder: @distribution.issued_at}),
turbo_stream.replace(@distribution, partial: "form", locals: {distribution: @distribution, date_place_holder: @distribution.issued_at, source: 'new'}),
turbo_stream.replace("flash", partial: "shared/flash")
], status: :bad_request
end
Expand Down

0 comments on commit a4de391

Please sign in to comment.