Fix flash message for step text [SCI-7959] (#5291)

This commit is contained in:
ajugo 2023-04-12 14:57:46 +02:00 committed by GitHub
parent 447f9dc993
commit af7ec3d86d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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