mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +08:00
Fix flash message for step text [SCI-7959] (#5291)
This commit is contained in:
parent
447f9dc993
commit
af7ec3d86d
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ module StepElements
|
|||
|
||||
render json: @step_text, serializer: StepTextSerializer, user: current_user
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
head :unprocessable_entity
|
||||
render json: @step_text.errors, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Reference in a new issue