Commit 9eec4984 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Properly indent method chains

parent ec103f1c
...@@ -30,14 +30,15 @@ ...@@ -30,14 +30,15 @@
getActiveIds() { getActiveIds() {
let selected = []; let selected = [];
this.$wrap.find('input[name^="protected_branch[merge_access_levels_attributes]"]') this.$wrap
.map((i, el) => { .find('input[name^="protected_branch[merge_access_levels_attributes]"]')
const $el = $(el); .map((i, el) => {
selected.push({ const $el = $(el);
id: parseInt($el.val()), selected.push({
type: $el.data('type') id: parseInt($el.val()),
}); type: $el.data('type')
}); });
});
return selected; return selected;
} }
......
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