From 052947735bae0f2c5c6876ba60941aa84888576e Mon Sep 17 00:00:00 2001 From: Dominik Guzei Date: Wed, 10 Jul 2019 14:34:30 +0200 Subject: fix reactions and workspace cleanup logic --- src/stores/lib/Reaction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stores/lib/Reaction.js') diff --git a/src/stores/lib/Reaction.js b/src/stores/lib/Reaction.js index f2642908f..f8009b7f6 100644 --- a/src/stores/lib/Reaction.js +++ b/src/stores/lib/Reaction.js @@ -13,15 +13,15 @@ export default class Reaction { start() { if (!this.isRunning) { - this.dispose = autorun(() => this.reaction()); - this.isActive = true; + this.dispose = autorun(this.reaction); + this.isRunning = true; } } stop() { if (this.isRunning) { this.dispose(); - this.isActive = false; + this.isRunning = false; } } } -- cgit v1.2.3-70-g09d2