mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 09:13:05 +08:00
Merge pull request #2294 from aignatov-bio/ai-sci-4124-fix-flash-message
Fix flash message for datetime column [SCI-4124]
This commit is contained in:
commit
6f78901d4e
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ module RepositoryColumns
|
|||
params: repository_column_params)
|
||||
|
||||
if service.succeed?
|
||||
render json: service.column, status: :created
|
||||
render json: service.column, status: :created, creating: true
|
||||
else
|
||||
render json: service.errors, status: :unprocessable_entity
|
||||
end
|
||||
|
@ -28,7 +28,7 @@ module RepositoryColumns
|
|||
params: repository_column_params)
|
||||
|
||||
if service.succeed?
|
||||
render json: service.column, status: :ok
|
||||
render json: service.column, status: :ok, editing: true
|
||||
else
|
||||
render json: service.errors, status: :unprocessable_entity
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue