mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
fixed small oversight
This commit is contained in:
parent
c963c948a1
commit
fab9180b7b
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ module ProtocolsIoHelper
|
|||
end
|
||||
|
||||
def protocols_io_guid_reorder_step_json(unordered_step_json)
|
||||
return '' if unordered_step_json.nil?
|
||||
return '' if unordered_step_json.blank?
|
||||
number_of_steps = unordered_step_json.size
|
||||
return unordered_step_json if number_of_steps == 1
|
||||
base_step = unordered_step_json.find { |step| step['previous_guid'].nil? }
|
||||
|
|
Loading…
Reference in a new issue