From 3482f4ae5970b458af9a5ef192c2733517a0790c Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Mon, 14 Sep 2020 14:36:57 -0400 Subject: [PATCH 1/2] 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; From a053f59970089b4ead840ff3cab558bbf7c211f9 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Tue, 15 Sep 2020 18:59:34 -0400 Subject: [PATCH 2/2] soto: address #3484 review --- pkg/interface/src/views/apps/dojo/app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/interface/src/views/apps/dojo/app.js b/pkg/interface/src/views/apps/dojo/app.js index 041fa6727..a16a262f3 100644 --- a/pkg/interface/src/views/apps/dojo/app.js +++ b/pkg/interface/src/views/apps/dojo/app.js @@ -20,7 +20,6 @@ export default class DojoApp extends Component { this.store.setStateHandler(this.setState.bind(this)); this.state = this.store.state; - this.resetControllers = this.resetControllers.bind(this); } resetControllers() {