Fix val is undefined
This commit is contained in:
1 parent
67c8db8b99
commit
5e80efda58
2 files changed
+6
-1
No files matched your search
@@ -788,6 +788,7 @@ define([
|
||||
getAllStores().forEach(function (s) {
|
||||
s.manager.getPadAttribute(data, waitFor(function (err, val) {
|
||||
if (err) { return; }
|
||||
if (!val || typeof(val) !== "object") { return void console.error("Not an object!"); }
|
||||
if (!res.value || res.atime < val.atime) {
|
||||
res.atime = val.atime;
|
||||
res.value = val.value;
|
||||
|
||||
Reference in new issue
Block a user