Skip to content

Commit

Permalink
root fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Nov 16, 2023
1 parent 62141cc commit 26ae568
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function TreePicker<T extends GenericContentWithIsParent = GenericContent

const defaultRenderer = useCallback(
(item: T) => {
if (item.isParent) {
if (item.isParent && props.selectionRoots?.includes(item.Path)) {
return (
<ListItem data-test="picker-up" key={item.Id} button={true}>
<ListItemIcon>
Expand Down Expand Up @@ -119,7 +119,6 @@ export function TreePicker<T extends GenericContentWithIsParent = GenericContent

return (
<List>
{/* <div onClick={() => navigateTo(props?.defaultValue[0] as T)}>Test</div> */}
{items?.map((item) => (
<div
onClick={(e) => onCheckedChangeHandler(e, item as any)}
Expand Down

0 comments on commit 26ae568

Please sign in to comment.