From b9d6a235e3591b561b5c340ecf3af0003b842207 Mon Sep 17 00:00:00 2001 From: shbatm Date: Fri, 4 Jan 2019 12:37:58 -0600 Subject: [PATCH] Fixes Incomplete fix for MichMich/MagicMirror#1507 --- modules/default/updatenotification/node_helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/updatenotification/node_helper.js b/modules/default/updatenotification/node_helper.js index 9d278751..25c088ba 100644 --- a/modules/default/updatenotification/node_helper.js +++ b/modules/default/updatenotification/node_helper.js @@ -65,7 +65,7 @@ module.exports = NodeHelper.create({ data.module = sg.module; if (!err) { sg.git.log({"-1": null}, function(err, data2) { - if (!err) { + if (!err && data2.latest) { data.hash = data2.latest.hash; self.sendSocketNotification("STATUS", data); }