From 910a2b5917349bdf9a846bcaf44342f5253e2cc3 Mon Sep 17 00:00:00 2001 From: Shaurya Sharma <79473274+shaurya-sharma064@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:41:48 +0530 Subject: [PATCH] Listview selected row storing incorrect values fix (#2495) --- frontend/src/AppBuilder/Widgets/Listview.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/AppBuilder/Widgets/Listview.jsx b/frontend/src/AppBuilder/Widgets/Listview.jsx index 301171677f..5ec5abbb17 100644 --- a/frontend/src/AppBuilder/Widgets/Listview.jsx +++ b/frontend/src/AppBuilder/Widgets/Listview.jsx @@ -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