ui: Pass GET data and clean certain values for KV's ensuring consistency (#4991)

This commit is contained in:
John Cowen 2018-11-26 16:37:25 +00:00 committed by John Cowen
parent 4f34ac7861
commit c64c88026a
2 changed files with 4 additions and 0 deletions

View File

@ -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;
},

View File

@ -136,6 +136,7 @@ export default Adapter.extend({
}
return null;
}
return data;
},
methodForRequest: function(params) {
switch (params.requestType) {