diff --git a/main.js b/main.js index 4bc4c98..ac2f832 100644 --- a/main.js +++ b/main.js @@ -1336,7 +1336,7 @@ function pushall() function fetchandserialize(guid) { - var name = metadata[guid] ? metadata[guid] : guid; + var name = (metadata && metadata[guid]) ? metadata[guid] : guid; console.log("fetching '" + name + "'"); return queryremote({action: "fetch", name: guid}) .then(content =>