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

Regression: Client crashing on startup #22610

Merged
merged 1 commit into from Jul 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/authorization/client/startup.js
Expand Up @@ -13,7 +13,7 @@ Meteor.startup(() => {
CachedCollectionManager.onLogin(async () => {
const { roles } = await APIClient.v1.get('roles.list');
// if a role is checked before this collection is populated, it will return undefined
Roles._collection._docs._map = Object.fromEntries(roles.map((record) => [record._id, record]));
Roles._collection._docs._map = new Map(roles.map((record) => [record._id, record]));
Object.values(Roles._collection.queries).forEach((query) => Roles._collection._recomputeResults(query));

Roles.ready.set(true);
Expand Down