fixed small oversight

This commit is contained in:
Zanz2 2018-02-15 23:40:09 +01:00
parent c963c948a1
commit fab9180b7b

View file

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