Fix for the UI component calling the createContainer and assigning it to the LoginForm

This commit is contained in:
Joachim Hill-Grannec 2017-07-08 13:38:50 -07:00
parent 87d531dbaa
commit bcb14de3f7

View file

@ -1024,10 +1024,12 @@ LoginForm.defaultProps = {
Accounts.ui.LoginForm = LoginForm;
export default createContainer(() => {
const LoginFormContainer = createContainer(() => {
// Listen for the user to login/logout and the services list to the user.
Meteor.subscribe('servicesList');
return ({
user: Accounts.user(),
});
}, LoginForm);
Accounts.ui.LoginForm = LoginFormContainer;
export default LoginFormContainer