-
Notifications
You must be signed in to change notification settings - Fork 505
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
Permission ordering should show shallow permissions first #1011
Comments
hey @chronark, I have made some changes to tree component. Added a function that maps over nestedPermissions then every checks every permission if it as any nested permission if it contain then pushes to bottom of array and if doesn't then pushes to top of array. And then finally we map over the sortedNestedPermissions array and return recursivePermission component. It works as Excepted!! https://www.loom.com/share/87013f98356f467da5752b5b0abbf543?sid=92c83072-0a95-429a-bb77-0e08af5c23e9 Any feedback would be appericated! |
/assign |
Assigned to @DeepaPrasanna! Please open a draft PR linking this issue within 48h |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
Preliminary Checks
Reproduction / Replay Link (Optional)
No response
Issue Summary
All non-nested permissions should show before nested permissions
Steps to Reproduce
Expected behavior
The order should be:
Other information
No response
Screenshots
No response
Version info
The text was updated successfully, but these errors were encountered: