From c7662a320fc59798921d81f205f2dc564aa76587 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Wed, 1 Dec 2021 17:05:57 -0500 Subject: [PATCH] Fix `app.route` initialization The first argument being an object breaks the forum, since a function can work in `Object.assign` if it is the first argument. --- js/src/forum/ForumApplication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/forum/ForumApplication.ts b/js/src/forum/ForumApplication.ts index f6ae27541..169e28135 100644 --- a/js/src/forum/ForumApplication.ts +++ b/js/src/forum/ForumApplication.ts @@ -80,7 +80,7 @@ export default class ForumApplication extends Application { routes(this); - this.route = Object.assign({}, (Object.getPrototypeOf(Object.getPrototypeOf(this)) as Application).route.bind(this), makeRouteHelpers(this)); + this.route = Object.assign((Object.getPrototypeOf(Object.getPrototypeOf(this)) as Application).route.bind(this), makeRouteHelpers(this)); } /**