Open chronark opened 6 months ago
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!
Nice, thank you
can you still sort alphabetically within one depth? Right now they are out of order, it should be
Can this issue be assigned to me? I have fixed the sorting order.
.sort
before mapping:
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