diff --git a/framework/core/js/src/common/Model.ts b/framework/core/js/src/common/Model.ts index e5ddcb190..a255e6d1f 100644 --- a/framework/core/js/src/common/Model.ts +++ b/framework/core/js/src/common/Model.ts @@ -204,14 +204,12 @@ export default abstract class Model { return app .request( - Object.assign( - { - method: this.exists ? 'PATCH' : 'POST', - url: app.forum.attribute('apiUrl') + this.apiEndpoint(), - body: request, - }, - options - ) + { + method: this.exists ? 'PATCH' : 'POST', + url: app.forum.attribute('apiUrl') + this.apiEndpoint(), + body: request, + ...options, + }, ) .then( // If everything went well, we'll make sure the store knows that this