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

Queries scoped to remote queries before load fail #6

Open
robmonie opened this issue Aug 26, 2011 · 0 comments
Open

Queries scoped to remote queries before load fail #6

robmonie opened this issue Aug 26, 2011 · 0 comments

Comments

@robmonie
Copy link

I have a remote query that i'm using as a base query for other queries to scope themselves to for things like further client side filtering and sorting. If I attach the scoped queries after the main query has finished loading, everything works fine. If however, I attach the scoped query before the baseQuery has been loaded, I get "Cannot call method 'forEach' of null" on line 568 of SC.RecordArray - https://github.com/sproutcore/sproutcore-datastore/blob/master/lib/system/record_array.js#L568

I have ways of working around this but it would be simpler if it didn't fail under this scenario.

cheers,
rob

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

1 participant