Commit 6128f286 authored by Eric Eastwood's avatar Eric Eastwood Committed by Shinya Maeda

Use each loop because index is no longer used

See
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12372#note_34120330
parent 1bfa818a
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
%label.label-light %label.label-light
#{ _('Variables') } #{ _('Variables') }
%ul.js-pipeline-variable-list.pipeline-variable-list %ul.js-pipeline-variable-list.pipeline-variable-list
- if @schedule.variables.present? - @schedule.variables.each do |variable|
- @schedule.variables.each_with_index do |variable, i|
= render 'variable_row', id: variable.id, key: variable.key, value: variable.value = render 'variable_row', id: variable.id, key: variable.key, value: variable.value
= render 'variable_row' = render 'variable_row'
.form-group .form-group
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment