I’ve searched this forum up and down and I just can’t seem to get this to work.
in the page i’m trying to get a field i created in the user doing
export default withTracker(() => {
// Get access to Club documents.
const clubSubscription = Meteor.subscribe('Clubs');
const reviewSubscription = Meteor.subscribe('ReviewsModerator');
const types = Meteor.user() ? Meteor.user().types : {};
return {
clubs: Clubs.find({}).fetch(),
reviews: Reviews.find({}).fetch(),
ready: clubSubscription.ready() && reviewSubscription.ready(),
types: types,
};
})(Landing);
but it keeps coming up undefined. I can see the field in the mongo db running find, and I can see it in mini mongo but keeps saying undefined