mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
Fixed context
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user