mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
Merge pull request #574 from ZmagoD/zd_SCI_1194_v2
prevent to get nil as a param in checklist_item_annotation method [fi…
This commit is contained in:
commit
cc6c2942c2
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ module StepsActions
|
|||
e.items.each do |ci|
|
||||
old_list = old_checklists.select { |i| i.id == e.id }.first
|
||||
old_item = old_list.items.select { |i| i.id == ci.id }.first if old_list
|
||||
|
||||
checklist_item_annotation(step, ci, old_item.text)
|
||||
text = old_item ? old_item.text : ''
|
||||
checklist_item_annotation(step, ci, text)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue