Set tools actual/target to 0 if they dont exist.
This commit is contained in:
parent
4b5eff5ec6
commit
b2552795dc
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue