fix exception at startup sync
This commit is contained in:
parent
e896275724
commit
682a18132d
2
main.js
2
main.js
|
@ -1336,7 +1336,7 @@ function pushall()
|
||||||
|
|
||||||
function fetchandserialize(guid)
|
function fetchandserialize(guid)
|
||||||
{
|
{
|
||||||
var name = metadata[guid] ? metadata[guid] : guid;
|
var name = (metadata && metadata[guid]) ? metadata[guid] : guid;
|
||||||
console.log("fetching '" + name + "'");
|
console.log("fetching '" + name + "'");
|
||||||
return queryremote({action: "fetch", name: guid})
|
return queryremote({action: "fetch", name: guid})
|
||||||
.then(content =>
|
.then(content =>
|
||||||
|
|
Loading…
Reference in New Issue