mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +08:00
Fix hound [SCI-8223]
This commit is contained in:
parent
2ae01c4da9
commit
8d3c473898
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.clear-button {
|
.clear-button {
|
||||||
margin-right: 0.375rem;
|
margin-right: .375rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -335,7 +335,7 @@ class ProtocolsController < ApplicationController
|
||||||
},
|
},
|
||||||
status: :bad_request
|
status: :bad_request
|
||||||
elsif @new_protocol.invalid?
|
elsif @new_protocol.invalid?
|
||||||
render json: { error: @new_protocol.errors.messages.map { |key, value| value }.join(' ') }, status: :unprocessable_entity
|
render json: { error: @new_protocol.errors.messages.map { |_, value| value }.join(' ') }, status: :unprocessable_entity
|
||||||
else
|
else
|
||||||
# Everything good, render 200
|
# Everything good, render 200
|
||||||
render json: { message: t('my_modules.protocols.copy_to_repository_modal.success_message') }
|
render json: { message: t('my_modules.protocols.copy_to_repository_modal.success_message') }
|
||||||
|
|
Loading…
Add table
Reference in a new issue