From a7e1ca3fc8c6432c2c18c251137690bfe8ce0726 Mon Sep 17 00:00:00 2001 From: harshitg927 Date: Sat, 25 Jan 2025 20:57:26 +0530 Subject: [PATCH 1/2] fix: modify dictionary item only when user explicitly click on select --- frontend/src/components/admin/menu/DictionaryManagement.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/src/components/admin/menu/DictionaryManagement.js b/frontend/src/components/admin/menu/DictionaryManagement.js index 0d42548435..1a08805cd6 100644 --- a/frontend/src/components/admin/menu/DictionaryManagement.js +++ b/frontend/src/components/admin/menu/DictionaryManagement.js @@ -652,9 +652,6 @@ function DictionaryManagement() { {rows.map((row) => ( { - setSelectedRowId(row.id); - }} > {row.cells.map((cell) => renderCell(cell, row))} From 14d66e1ec0b2b83226cad202b90d8c8b048b699e Mon Sep 17 00:00:00 2001 From: harshitg927 Date: Sat, 25 Jan 2025 20:58:10 +0530 Subject: [PATCH 2/2] formatted code using npm run format --- .../admin/generalConfig/common/ConfigMenuDisplay.js | 4 +--- frontend/src/components/admin/menu/DictionaryManagement.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/admin/generalConfig/common/ConfigMenuDisplay.js b/frontend/src/components/admin/generalConfig/common/ConfigMenuDisplay.js index 9356548cce..c484662495 100644 --- a/frontend/src/components/admin/generalConfig/common/ConfigMenuDisplay.js +++ b/frontend/src/components/admin/generalConfig/common/ConfigMenuDisplay.js @@ -269,9 +269,7 @@ function ConfigMenuDisplay(props) { <> {rows.map((row) => ( - + {row.cells.map((cell) => renderCell(cell, row), )} diff --git a/frontend/src/components/admin/menu/DictionaryManagement.js b/frontend/src/components/admin/menu/DictionaryManagement.js index 1a08805cd6..ca6588fa18 100644 --- a/frontend/src/components/admin/menu/DictionaryManagement.js +++ b/frontend/src/components/admin/menu/DictionaryManagement.js @@ -650,9 +650,7 @@ function DictionaryManagement() { {rows.map((row) => ( - + {row.cells.map((cell) => renderCell(cell, row))} ))}