fix: row selection with incorrect values

This commit is contained in:
Hein
2026-02-11 11:09:35 +02:00
parent 95e2973d44
commit afb7a3346f
2 changed files with 8 additions and 3 deletions

View File

@@ -336,7 +336,9 @@ const { Provider, useStore: useGridlerStore } = createSyncStore<GridlerStoreStat
},
getRowIndexByKey: async (key: number | string) => {
const state = get();
if (key === undefined || key === null) {
return undefined;
}
let rowIndex = -1;
if (state.ready) {
const page_data = state._page_data;