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,9 +27,8 @@
%label.label-light
#{ _('Variables') }
%ul.js-pipeline-variable-list.pipeline-variable-list
- if @schedule.variables.present?
- @schedule.variables.each_with_index do |variable, i|
= render 'variable_row', id: variable.id, key: variable.key, value: variable.value
- @schedule.variables.each do |variable|
= render 'variable_row', id: variable.id, key: variable.key, value: variable.value
= render 'variable_row'
.form-group
.col-md-9
......
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