mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 13:14:29 +08:00
refactor
This commit is contained in:
parent
0456393317
commit
d5abb52909
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ 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
|
||||
text = old_item.text if old_item
|
||||
text ||= ''
|
||||
text = old_item ? old_item.text : ''
|
||||
checklist_item_annotation(step, ci, text)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue