mirror of https://github.com/status-im/consul.git
ui: Pass GET data and clean certain values for KV's ensuring consistency (#4991)
This commit is contained in:
parent
7dc7d325dc
commit
7fc59af7e2
|
@ -71,6 +71,9 @@ export default Adapter.extend({
|
|||
delete _query.id;
|
||||
}
|
||||
const query = { ..._query };
|
||||
if (typeof query.separator !== 'undefined') {
|
||||
delete query.separator;
|
||||
}
|
||||
delete _query[DATACENTER_QUERY_PARAM];
|
||||
return query;
|
||||
},
|
||||
|
|
|
@ -136,6 +136,7 @@ export default Adapter.extend({
|
|||
}
|
||||
return null;
|
||||
}
|
||||
return data;
|
||||
},
|
||||
methodForRequest: function(params) {
|
||||
switch (params.requestType) {
|
||||
|
|
Loading…
Reference in New Issue