diff --git a/web/src/components/TreeFilterDropdown/TreeFilterDropdown.tsx b/web/src/components/TreeFilterDropdown/TreeFilterDropdown.tsx index d6d26d7..a0c4716 100644 --- a/web/src/components/TreeFilterDropdown/TreeFilterDropdown.tsx +++ b/web/src/components/TreeFilterDropdown/TreeFilterDropdown.tsx @@ -145,8 +145,8 @@ export const TreeFilterDropdown: React.FC = ({ if (parentNode?.key) { const childrens = getAllDescendants(parentNode as OptionType); const isAllChildrenSelected = childrens.every((childKey) => newKeys.has(childKey)); - if(!isAllChildrenSelected){ - newKeys.delete(parentNode.key) + if (!isAllChildrenSelected) { + newKeys.delete(parentNode.key); } } } else { diff --git a/web/src/widgets/ConsolidatedChessContent/ConsolidatedChessContent.tsx b/web/src/widgets/ConsolidatedChessContent/ConsolidatedChessContent.tsx index 09fa07d..8e38d37 100644 --- a/web/src/widgets/ConsolidatedChessContent/ConsolidatedChessContent.tsx +++ b/web/src/widgets/ConsolidatedChessContent/ConsolidatedChessContent.tsx @@ -72,7 +72,7 @@ export const ChessContent = ({ card }: { card: VersionCard | null }) => { return () => document.removeEventListener('fullscreenchange', handleFullscreenChange); }, []); - const isHalfFiltered = (debit.length > 0 && credit.length === 0) || (debit.length === 0 && credit.length > 0); + const isHalfFiltered = (debit.length > 0 && credit.length === 0) || (debit.length === 0 && credit.length > 0); const loadData = useCallback( async (vId: string, dIds: string[], cIds: string[], isActual: () => boolean) => {