Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Collection.hasLink('toString') === true #414

Open
MaxmaxmaximusGitHub opened this issue Mar 2, 2020 · 2 comments
Open

[BUG] Collection.hasLink('toString') === true #414

MaxmaxmaximusGitHub opened this issue Mar 2, 2020 · 2 comments

Comments

@MaxmaxmaximusGitHub
Copy link

Messages = new Mongo.Collection('messages')

Messages.addLinks({
	'user': {
		type      : 'one',
		collection: Meteor.users,
		field     : 'userId',
	}
})

console.log Messages.hasLink('toString') // true
@copleykj
Copy link

copleykj commented Mar 3, 2020

While I guess this is technically a bug, I'm not sure how you possibly stumbled across this 😂

@Prinzhorn
Copy link

Prinzhorn commented Aug 25, 2021

return !!this[LINK_STORAGE][name];

use hasOwnProperty (in multiple other places as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants