Listview selected row storing incorrect values fix (#2495)

This commit is contained in:
Shaurya Sharma 2024-10-25 12:41:48 +05:30 committed by Shaurya Sharma
parent 1c83d01026
commit 910a2b5917

View file

@ -143,6 +143,8 @@ export const Listview = function Listview({
if (selectedRowIndex != undefined) {
exposedVariables.selectedRecordId = selectedRowIndex;
exposedVariables.selectedRecord = childrenData[selectedRowIndex];
exposedVariables.selectedRowId = selectedRowIndex;
exposedVariables.selectedRow = childrenData[selectedRowIndex];
}
setExposedVariables(exposedVariables);
// eslint-disable-next-line react-hooks/exhaustive-deps