From 7fc59af7e2709a2a9179977e829c811a59b81859 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 26 Nov 2018 16:37:25 +0000 Subject: [PATCH] ui: Pass GET data and clean certain values for KV's ensuring consistency (#4991) --- ui-v2/app/adapters/application.js | 3 +++ ui-v2/app/adapters/kv.js | 1 + 2 files changed, 4 insertions(+) diff --git a/ui-v2/app/adapters/application.js b/ui-v2/app/adapters/application.js index 07532cc0ed..aa3555059d 100644 --- a/ui-v2/app/adapters/application.js +++ b/ui-v2/app/adapters/application.js @@ -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; }, diff --git a/ui-v2/app/adapters/kv.js b/ui-v2/app/adapters/kv.js index 509b1440f0..b99422abba 100644 --- a/ui-v2/app/adapters/kv.js +++ b/ui-v2/app/adapters/kv.js @@ -136,6 +136,7 @@ export default Adapter.extend({ } return null; } + return data; }, methodForRequest: function(params) { switch (params.requestType) {