fix(frontend): Fix the selection of the first row (#3263)

This commit is contained in:
Faton Ramadani
2024-02-21 16:46:44 +01:00
committed by GitHub
parent 55501901a3
commit b2de1c6ba6
@@ -204,7 +204,7 @@
?.getSelectedNodes()
?.find((row) => row?.data?.__index === e?.data?.__index)
if (e.rowIndex && !isAlreadySelected) {
if (e.rowIndex !== null && !isAlreadySelected) {
// We select the row when we start editing, for example when we click on a checkbox
e.api.getRowNode(e.rowIndex.toString())?.setSelected(true)
}