Commit d7c04772 authored by Constance Okoghenun's avatar Constance Okoghenun

Replaced $.get with axois.get

parent 297b075b
/* eslint-disable func-names, no-new, space-before-function-paren, one-var, /* eslint-disable func-names, no-new, space-before-function-paren, one-var,
promise/catch-or-return */ promise/catch-or-return */
import axios from '~/lib/utils/axios_utils';
import _ from 'underscore'; import _ from 'underscore';
import CreateLabelDropdown from '../../create_label'; import CreateLabelDropdown from '../../create_label';
...@@ -28,9 +29,9 @@ gl.issueBoards.newListDropdownInit = () => { ...@@ -28,9 +29,9 @@ gl.issueBoards.newListDropdownInit = () => {
$this.glDropdown({ $this.glDropdown({
data(term, callback) { data(term, callback) {
$.get($this.attr('data-list-labels-path')) axios.get($this.attr('data-list-labels-path'))
.then((resp) => { .then(({ data }) => {
callback(resp); callback(data);
}); });
}, },
renderRow (label) { renderRow (label) {
......
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