From d1621ad4245e15d971ac695c8aa56ab4e93cc5c5 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Mon, 23 Jan 2017 11:57:35 -0700 Subject: [PATCH] Fixed context --- graph/context.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graph/context.js b/graph/context.js index cdc05f6cf..ce8f5eb83 100644 --- a/graph/context.js +++ b/graph/context.js @@ -8,7 +8,9 @@ class Context { constructor({user = null}) { // Load the current logged in user to `user`, otherwise this'll be null. - this.user = user; + if (user) { + this.user = user; + } // Create the loaders. this.loaders = loaders(this);