diff --git a/next-docs/public/examples/table/ExpandableCheckboxes.tsx b/next-docs/public/examples/table/ExpandableCheckboxes.tsx index b23bd1045a..13a8b4839d 100644 --- a/next-docs/public/examples/table/ExpandableCheckboxes.tsx +++ b/next-docs/public/examples/table/ExpandableCheckboxes.tsx @@ -16,7 +16,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-[25px]', 'ps-[50px]', @@ -30,15 +30,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 = [ @@ -57,7 +57,7 @@ const Example = () => {