Merge pull request #123 from josmo/fix-react-meteor-data

Fix for the UI component calling the createContainer and assigning it…
This commit is contained in:
Sebastian Ilves 2018-02-08 10:28:07 +01:00 committed by GitHub
commit c8d7653fc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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