Skip to content

Commit 24cf415

Browse files
authored
fix: adopt AG Grid 33 (#1335)
1 parent ab7a3f4 commit 24cf415

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

client/src/webview/DataViewer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const DataViewer = () => {
5252
maxBlocksInCache={10}
5353
onGridReady={onGridReady}
5454
rowModelType="infinite"
55+
theme="legacy"
5556
/>
5657
</div>
5758
);

client/src/webview/useDataViewer.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import { useCallback, useEffect, useState } from "react";
44

5-
import { ColDef, GridReadyEvent, IGetRowsParams } from "ag-grid-community";
5+
import {
6+
AllCommunityModule,
7+
ColDef,
8+
GridReadyEvent,
9+
IGetRowsParams,
10+
ModuleRegistry,
11+
} from "ag-grid-community";
612
import { v4 } from "uuid";
713

814
import { TableData } from "../components/LibraryNavigator/types";
@@ -12,6 +18,8 @@ import columnHeaderTemplate from "./columnHeaderTemplate";
1218
declare const acquireVsCodeApi;
1319
const vscode = acquireVsCodeApi();
1420

21+
ModuleRegistry.registerModules([AllCommunityModule]);
22+
1523
const contextMenuHandler = (e) => {
1624
e.stopImmediatePropagation();
1725
};

0 commit comments

Comments
 (0)