Skip to content

Commit

Permalink
[EuiInMemoryTable] Remove now-unused table ref
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Feb 2, 2024
1 parent ab26379 commit 4ed3173
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/basic_table/in_memory_table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ export class EuiInMemoryTable<T extends object = object> extends Component<
tableLayout: 'fixed',
searchFormat: 'eql',
};
tableRef: React.RefObject<EuiBasicTable>;

static getDerivedStateFromProps<T extends object>(
nextProps: EuiInMemoryTableProps<T>,
Expand Down Expand Up @@ -424,8 +423,6 @@ export class EuiInMemoryTable<T extends object = object> extends Component<
allowNeutralSort: allowNeutralSort !== false,
showPerPageOptions,
};

this.tableRef = React.createRef<EuiBasicTable>();
}

onTableChange = ({ page, sort }: Criteria<T>) => {
Expand Down Expand Up @@ -743,7 +740,6 @@ export class EuiInMemoryTable<T extends object = object> extends Component<
const table = (
// @ts-ignore complex relationship between pagination's existence and criteria, the code logic ensures this is correctly maintained
<EuiBasicTable
ref={this.tableRef}
items={items}
itemId={itemId}
rowProps={rowProps}
Expand Down

0 comments on commit 4ed3173

Please sign in to comment.