From 261ea52354359a6543ff4e96ce0b81b929f05c7d Mon Sep 17 00:00:00 2001 From: Daniel Koch Date: Tue, 24 Oct 2023 16:54:34 +0200 Subject: [PATCH] fix: adjust to change Key type in @types/react --- src/Grid/FeatureGrid/FeatureGrid.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Grid/FeatureGrid/FeatureGrid.tsx b/src/Grid/FeatureGrid/FeatureGrid.tsx index 9aac95c0dd..ee025a3161 100644 --- a/src/Grid/FeatureGrid/FeatureGrid.tsx +++ b/src/Grid/FeatureGrid/FeatureGrid.tsx @@ -96,7 +96,8 @@ interface OwnProps { /** * Callback function, that will be called if the selection changes. */ - onRowSelectionChange?: (selectedRowKeys: Array, selectedFeatures: OlFeature[]) => void; + onRowSelectionChange?: (selectedRowKeys: Array, + selectedFeatures: OlFeature[]) => void; } interface FeatureGridState { @@ -565,7 +566,7 @@ export class FeatureGrid extends React.Component => { + getFeatureFromRowKey = (key: number | string | bigint): OlFeature => { const { features, keyFunction