diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-11-21 19:04:28 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-06 04:02:34 +0300 |
commit | f57b1323ffd72607eb72ec670a27cbf572732d96 (patch) | |
tree | d1f8073eb17344a513cf8b5fcf8028d126af966f /app/assets/javascripts/labels_select.js | |
parent | 2dd84abf41d7294cf52f18ce059356f33a12dcdf (diff) |
Fix failed tests and add extra test
Diffstat (limited to 'app/assets/javascripts/labels_select.js')
-rw-r--r-- | app/assets/javascripts/labels_select.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/labels_select.js b/app/assets/javascripts/labels_select.js index bb0af7de5da..f7a611fbca0 100644 --- a/app/assets/javascripts/labels_select.js +++ b/app/assets/javascripts/labels_select.js @@ -170,7 +170,7 @@ export default class LabelsSelect { axios .get(labelUrl) .then(res => { - let data = res.data; + let { data } = res; if ($dropdown.hasClass('js-extra-options')) { var extraData = []; if (showNo) { @@ -256,7 +256,8 @@ export default class LabelsSelect { } } if (label.color) { - colorEl = "<span class='dropdown-label-box' style='background: " + label.color + "'></span>"; + colorEl = + "<span class='dropdown-label-box' style='background: " + label.color + "'></span>"; } else { colorEl = ''; } |