Commit e8bbd0fb authored by Michael Lange's avatar Michael Lange
Browse files

Refactor the job xhrKey to use super

parent f160f70f
No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
......@@ -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: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment