Skip to content

Commit

Permalink
fix: properly call destroy action with changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed May 23, 2022
1 parent 142bbc3 commit 6f48087
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ash_phoenix/form/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,7 @@ defmodule AshPhoenix.Form do
changeset_opts
)
|> before_submit.()
|> form.api.destroy()
|> with_changeset(&form.api.update/1)
|> with_changeset(&form.api.destroy/1)

:read ->
form.resource
Expand Down

0 comments on commit 6f48087

Please sign in to comment.