Commit 9439631a authored by Nick Thomas's avatar Nick Thomas

Fix some syntax errors in api.js

parent 953b4b78
......@@ -170,8 +170,7 @@ const Api = {
},
ldap_groups(query, provider, callback) {
const url = Api.buildUrl(this.ldapGroupsPath);
url = url.replace(':provider', provider);
const url = Api.buildUrl(this.ldapGroupsPath).replace(':provider', provider);
return Api.wrapAjaxCall({
url: url,
data: Object.assign({
......@@ -183,7 +182,7 @@ const Api = {
dataType: 'json'
})
.done(groups => callback(groups));
}
},
wrapAjaxCall(options) {
return new Promise((resolve, reject) => {
......
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