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

Organization not found error in left drawer #1333

Closed
nitishkumar333 opened this issue Dec 31, 2023 · 15 comments
Closed

Organization not found error in left drawer #1333

nitishkumar333 opened this issue Dec 31, 2023 · 15 comments
Assignees
Labels
bug Something isn't working no-issue-activity No issue activity

Comments

@nitishkumar333
Copy link
Contributor

Describe the bug
When user profile is opened through the orglist page, an error is shown on the member page and redirected back to orglist page.

Steps to reproduce the behavior:

  1. Login
  2. Click on the username on the bottom left

Expected behavior
No error should be shown on the member page and should not redirect back to orglist.

sidebar.mp4
@nitishkumar333 nitishkumar333 added the bug Something isn't working label Dec 31, 2023
Copy link

Congratulations on making your first Issue! 🎊 If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.

@rishabhbizzle
Copy link
Contributor

I want to work please assign it to me

@nitishkumar333
Copy link
Contributor Author

Please assign it to me.

@noman2002
Copy link
Member

@aashimawadhwa is this a valid issue ??

@rishav-jha-mech
Copy link
Contributor

@noman2002 this is a valid issue. Let me explain.

When the current user is Admin/Superadmin, and tries to open his profile on clicking on the left drawer, he should be redirected to Superadmin Profile screen (Which does not exist yet), instead of going to that screen the user is being sent to an Organisation Profile Screen (Where the admin/superadmin can see other user's profile not his own).

@nitishkumar333 you need to create a new endpoint for this admin profile screen, but try to reuse the same component which we are using in the profile screen. Let me know if you face any problem.

@nitishkumar333
Copy link
Contributor Author

@rishav-jha-mech instead of creating a new endpoint (which will lead to creation of new files), I passed a state parameter with the link and conditionally rendered the MemberDetails component. Please let me know what you think of this approach.

Screenshot (95)

Screenshot (94)

Here is what is looks like, looking for feedback on it

leftdrawer.mp4

@rishav-jha-mech
Copy link
Contributor

@nitishkumar333 good work, open the PR for this soon.

@varunsh17
Copy link

I am also ecperiencing the same issue
Error occured while loading Organization Data Cast to ObjectId failed for value "undefined" (type string) at path "_id" for model "Organization"
image

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Jan 17, 2024
@kanhaiya04
Copy link
Contributor

I also identified this issue a few weeks back and am currently investigating a solution. If no one is currently working on it, I would like to take on the task. @palisadoes

@nitishkumar333
Copy link
Contributor Author

Hi @kanhaiya04 I have already made a PR for this issue, also this issue will no longer exists after #1407

@kanhaiya04
Copy link
Contributor

@nitishkumar333 Thanks for letting me know.

@github-actions github-actions bot removed the no-issue-activity No issue activity label Jan 18, 2024
Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Jan 28, 2024
@github-actions github-actions bot removed the no-issue-activity No issue activity label Feb 12, 2024
@GlenDsza
Copy link
Contributor

GlenDsza commented Feb 14, 2024

As the issue still persists I would like to work on this issue

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@github-actions github-actions bot added the no-issue-activity No issue activity label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity No issue activity
Projects
None yet
Development

No branches or pull requests

9 participants