Fixed context

This commit is contained in:
Wyatt Johnson
2017-01-23 11:57:35 -07:00
parent b2d9688c89
commit d1621ad424
+3 -1
View File
@@ -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);