From e8bbd0fb0bea47732f1ae1f4f59a8ff5d8eec0cf Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 25 May 2018 09:15:45 -0700 Subject: [PATCH] Refactor the job xhrKey to use super --- ui/app/adapters/job.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/app/adapters/job.js b/ui/app/adapters/job.js index 0e16fdcb4dbb..eeba0652255d 100644 --- a/ui/app/adapters/job.js +++ b/ui/app/adapters/job.js @@ -47,11 +47,12 @@ export default Watchable.extend({ }, xhrKey(url, method, options = {}) { + const plainKey = this._super(...arguments); const namespace = options.data && options.data.namespace; if (namespace) { - return `${method} ${url}?namespace=${namespace}`; + return `${plainKey}?namespace=${namespace}`; } - return `${method} ${url}`; + return plainKey; }, relationshipFallbackLinks: {