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]: If User is in no Organization #249

Closed
sumitra19jha opened this issue Mar 14, 2021 · 6 comments
Closed

[Bug]: If User is in no Organization #249

sumitra19jha opened this issue Mar 14, 2021 · 6 comments
Labels
unapproved Unapproved, needs to be triaged

Comments

@sumitra19jha
Copy link
Contributor

If member is in no organization then following error is thrown.

I/flutter (14223): GraphQL Errors:
I/flutter (14223): Cast to ObjectId failed for value "null" at path "_id" for model "Organization": Undefined location
E/flutter (14223): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: RangeError (index): Invalid value: Valid value range is empty: 0
E/flutter (14223): #0      List.[] (dart:core-patch/growable_array.dart:254:60)
E/flutter (14223): #1      _OrganizationsState.getMembers
package:talawa/…/members/members.dart:83
E/flutter (14223): <asynchronous suspension>

@Sagar2366
Copy link
Contributor

Please follow the guidelines while creating issues and PR's. Add snapshots/videos, observed and expected behaviour, steps tp reproduce the issue.

@Sagar2366
Copy link
Contributor

How #256 issue is different from this one ? Can you fix #256 in same PR ?
Avoid creating new issues/pr's for small fixes if not really required.

@sumitra19jha
Copy link
Contributor Author

Ok @Sagar2366 Noted that.

@Sagar2366
Copy link
Contributor

Sagar2366 commented Mar 15, 2021

Ok @Sagar2366 Noted that.

Should I close related PR for this #252 ? Are you fixing both the issues - #249 and #256 in PR number #257 ?

@sumitra19jha
Copy link
Contributor Author

sumitra19jha commented Mar 15, 2021

PR #252 fixes the console error. I suppose it should be there as it is occurring on member page(navigated from bottom navigation bar) of organization which still will be in visible mode even if user is not part of any organization at all.

@sumitra19jha
Copy link
Contributor Author

sumitra19jha commented Mar 15, 2021

Yes @Sagar2366 the PR #257 is fixing both the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unapproved Unapproved, needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants