-
Notifications
You must be signed in to change notification settings - Fork 14
[RHCLOUD-43251] Adding treeview filter to DataView #572
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
base: main
Are you sure you want to change the base?
Conversation
4f47a99 to
13f5a95
Compare
f92d4ce to
ed2bad1
Compare
|
|
ed2bad1 to
5c863e2
Compare
|
There seems to bee an infinite loop in tests after i tried to fix the lint errors looking into it now |
c9fd2d8 to
536676f
Compare
|
The looping should be resolved now |
|
|
||
| // Only update if there are checked items that need to be unchecked | ||
| if (currentCheckedItems.length > 0) { | ||
| const uncheckRecursive = (items: TreeViewDataItem[]): TreeViewDataItem[] => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncheckRecursive function is defined twice in DataViewTreeFilter.tsx - once inside the useEffect hook (for syncing when value.length === 0) and once inside uncheckAllItems. Perhaps you might consider extracting it into a single reusable helper function to avoid duplicate code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review i have extracted the uncheckRecursive function. Thanks for noticing
As defined in RHCLOUD-43251 adding the treeview filter to DataView