mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 04:32:16 +08:00
refactored to PR
This commit is contained in:
parent
97c01c386b
commit
bf34d82791
1 changed files with 2 additions and 4 deletions
|
@ -165,13 +165,11 @@ module ProtocolsIoHelper
|
|||
end
|
||||
|
||||
def step_hash_null?(step_json)
|
||||
return false unless step_json.dig(
|
||||
step_json.dig(
|
||||
0, 'components', 0, 'component_type_id'
|
||||
).nil?
|
||||
return false unless step_json.dig(
|
||||
).nil? && step_json.dig(
|
||||
0, 'components', '0', 'component_type_id'
|
||||
).nil?
|
||||
true
|
||||
end
|
||||
|
||||
# Images are allowed in:
|
||||
|
|
Loading…
Reference in a new issue