From 1ba52e3a20ab80246880de3c043725179574a8d0 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 7 Feb 2017 23:15:38 -0700 Subject: [PATCH] Fix bug with selection where coming back to calc would crash --- src/components/resistor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/resistor.js b/src/components/resistor.js index 148cdbb..0866cc0 100644 --- a/src/components/resistor.js +++ b/src/components/resistor.js @@ -36,7 +36,10 @@ class Resistor extends Component { this.state = { borderWidth: 1, - selection: this.findEnd(), + selection: { + start: 0, + end: 0, + } } }