From d82073c3a966fc610cc0e8fe4106e5202445fc9e Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com> Date: Sun, 12 Dec 2021 14:55:46 -0500 Subject: [PATCH] Update js/src/common/Model.ts Co-authored-by: David Wheatley --- js/src/common/Model.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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;