Set tools actual/target to 0 if they dont exist.
This commit is contained in:
1 parent
4b5eff5ec6
commit
b2552795dc
1 file changed
+3
@@ -210,6 +210,9 @@ $(function() {
|
||||
if (lastData.hasOwnProperty("tool" + i)) {
|
||||
tools[i]["actual"](lastData["tool" + i].actual);
|
||||
tools[i]["target"](lastData["tool" + i].target);
|
||||
} else {
|
||||
tools[i]["actual"](0);
|
||||
tools[i]["target"](0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user