From d95b895d0603919cb38823739cdc042d52f3624a Mon Sep 17 00:00:00 2001 From: bsholmes Date: Mon, 18 Sep 2023 12:09:56 -0700 Subject: [PATCH] ... fix them again? --- src/components/Table/utils/RowState.ts | 6 +++++- src/components/internal/Menu.tsx | 2 +- src/inputs/TreeSelectField/TreeSelectField.tsx | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Table/utils/RowState.ts b/src/components/Table/utils/RowState.ts index ddc71a5ef..be439b782 100644 --- a/src/components/Table/utils/RowState.ts +++ b/src/components/Table/utils/RowState.ts @@ -44,7 +44,11 @@ export class RowState { removed: false | "soft" | "hard" = false; private isCalculatingDirectMatch = false; - constructor(private states: RowStates, public parent: RowState | undefined, row: GridDataRow) { + constructor( + private states: RowStates, + public parent: RowState | undefined, + row: GridDataRow, + ) { this.row = row; this.selected = !!row.initSelected; this.collapsed = states.storage.wasCollapsed(row.id) ?? !!row.initCollapsed; diff --git a/src/components/internal/Menu.tsx b/src/components/internal/Menu.tsx index 3b5b2f081..649756102 100644 --- a/src/components/internal/Menu.tsx +++ b/src/components/internal/Menu.tsx @@ -25,7 +25,7 @@ export function Menu(props: PropsWithChildren>) { // by React-Aria to keep track of item states such as focus, and provide hooks for calling those actions. const tree = useTreeData({ initialItems: [items, persistentItems ? persistentItems : []].map( - (i, idx) => ({ label: idx === 0 ? "items" : "persistent", items: i } as MenuSection), + (i, idx) => ({ label: idx === 0 ? "items" : "persistent", items: i }) as MenuSection, ), getKey: (item) => camelCase(item.label), getChildren: (item) => (item as MenuSection).items ?? [], diff --git a/src/inputs/TreeSelectField/TreeSelectField.tsx b/src/inputs/TreeSelectField/TreeSelectField.tsx index 599735c32..5346ac985 100644 --- a/src/inputs/TreeSelectField/TreeSelectField.tsx +++ b/src/inputs/TreeSelectField/TreeSelectField.tsx @@ -123,7 +123,7 @@ interface CollapsedChildrenState { export const CollapsedContext = React.createContext>({ collapsedKeys: [], setCollapsedKeys: () => {}, - getOptionValue: () => ({} as any), + getOptionValue: () => ({}) as any, }); function TreeSelectFieldBase(props: TreeSelectFieldProps) {