diff --git a/next-docs/public/examples/table/ExpandableCheckboxes.tsx b/next-docs/public/examples/table/ExpandableCheckboxes.tsx index d7c8223e05..02427dba2c 100644 --- a/next-docs/public/examples/table/ExpandableCheckboxes.tsx +++ b/next-docs/public/examples/table/ExpandableCheckboxes.tsx @@ -21,7 +21,7 @@ const Example = () => { const [selected, setSelected] = useState<{ [key: string]: boolean }>({}); const columnShift = (depth: number) => { - const shiftMap: { [key: number]: string } = [ + const shiftMap: { [key: number]: string } = [ 'ps-0', 'ps-6', 'ps-12', @@ -33,15 +33,15 @@ const Example = () => { const checkIfSelected = (id: string, canExpand: boolean, rowsById: { [key: string]: boolean }) => { return canExpand ? Object.keys(rowsById) - .filter((rowId) => rowId.indexOf(id) === 0 && rowId !== id) - .every((rowId) => selected[rowId] === true) + .filter((rowId) => rowId.indexOf(id) === 0 && rowId !== id) + .every((rowId) => selected[rowId] === true) : selected[id] === true; } const checkIfIndeterminate = (id: string, rowsById: { [key: string]: boolean }) => { - const matches = Object.keys(rowsById) + const matches = Object.keys(rowsById) .filter((rowId) => rowId.indexOf(id) === 0 && rowId !== id); - return !matches.every((rowId) => selected[rowId] === true) && matches.some((rowId) => selected[rowId] === true); + return !matches.every((rowId) => selected[rowId] === true) && matches.some((rowId) => selected[rowId] === true); } const columnsInitial = [ @@ -60,7 +60,7 @@ const Example = () => {