форматирование
This commit is contained in:
parent
6b956f7664
commit
79d4008fcd
@ -145,8 +145,8 @@ export const TreeFilterDropdown: React.FC<TreeFilterDropdownProps> = ({
|
|||||||
if (parentNode?.key) {
|
if (parentNode?.key) {
|
||||||
const childrens = getAllDescendants(parentNode as OptionType);
|
const childrens = getAllDescendants(parentNode as OptionType);
|
||||||
const isAllChildrenSelected = childrens.every((childKey) => newKeys.has(childKey));
|
const isAllChildrenSelected = childrens.every((childKey) => newKeys.has(childKey));
|
||||||
if(!isAllChildrenSelected){
|
if (!isAllChildrenSelected) {
|
||||||
newKeys.delete(parentNode.key)
|
newKeys.delete(parentNode.key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user