diff --git a/js/src/common/Model.ts b/js/src/common/Model.ts index a255e6d1f..a8693cad8 100644 --- a/js/src/common/Model.ts +++ b/js/src/common/Model.ts @@ -239,14 +239,12 @@ export default abstract class Model { return app .request( - Object.assign( - { - method: 'DELETE', - url: app.forum.attribute('apiUrl') + this.apiEndpoint(), - body, - }, - options - ) + { + method: 'DELETE', + url: app.forum.attribute('apiUrl') + this.apiEndpoint(), + body, + ...options, + }, ) .then(() => { this.exists = false;