mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 05:34:55 +08:00
quick fix for if previous guid is unknown format
This commit is contained in:
parent
070450f813
commit
ba67446eee
1 changed files with 1 additions and 0 deletions
|
@ -322,6 +322,7 @@ module ProtocolsIoHelper
|
|||
|
||||
def protocols_io_guid_reorder_step_json(unordered_step_json)
|
||||
base_step = unordered_step_json.find { |step| step['previous_guid'].nil? }
|
||||
return unordered_step_json if base_step.nil?
|
||||
number_of_steps = unordered_step_json.size
|
||||
step_order = []
|
||||
step_counter = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue