Skip to content

Commit

Permalink
fix(config-server): trying to get global namespace before it created
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed May 23, 2019
1 parent 0624570 commit 4472072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nodes/config-server/config-server.js
Expand Up @@ -212,6 +212,7 @@ module.exports = function(RED) {

getFromContext(key) {
let haCtx = this.context().global.get('homeassistant');
haCtx = haCtx || {};
return haCtx[this.nameAsCamelcase]
? haCtx[this.nameAsCamelcase][key]
: null;
Expand Down

0 comments on commit 4472072

Please sign in to comment.