From 1078a99948ed857531d5365d6d16f9a29edfece2 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 0e16fdcb4..eeba06522 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: {