mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Merge pull request #1013 from Zanz2/step_reorder_fix
quick fix for if previous guid is unknown format [Protocols.io import]
This commit is contained in:
commit
bd19c89212
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…
Reference in a new issue