From 3482f4ae5970b458af9a5ef192c2733517a0790c Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Mon, 14 Sep 2020 14:36:57 -0400 Subject: [PATCH] soto: call resetControllers on mount --- pkg/interface/src/views/apps/dojo/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/interface/src/views/apps/dojo/app.js b/pkg/interface/src/views/apps/dojo/app.js index 3c4c5a6ee..041fa6727 100644 --- a/pkg/interface/src/views/apps/dojo/app.js +++ b/pkg/interface/src/views/apps/dojo/app.js @@ -20,7 +20,7 @@ export default class DojoApp extends Component { this.store.setStateHandler(this.setState.bind(this)); this.state = this.store.state; - this.resetControllers(); + this.resetControllers = this.resetControllers.bind(this); } resetControllers() { @@ -29,6 +29,7 @@ export default class DojoApp extends Component { } componentDidMount() { + this.resetControllers(); const channel = new window.channel(); this.api = new Api(this.props.ship, channel); this.store.api = this.api;