Skip to content

Commit

Permalink
Merge pull request DIGI-UW#1439 from harshitg927/issue-1438
Browse files Browse the repository at this point in the history
fix: modify dictionary item only when user explicitly click on select
  • Loading branch information
mozzy11 authored Jan 27, 2025
2 parents 58e7a05 + c05e3d3 commit fde4785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ function ConfigMenuDisplay(props) {
<TableBody>
<>
{rows.map((row) => (
<TableRow
key={row.id}
>
<TableRow key={row.id}>
{row.cells.map((cell) =>
renderCell(cell, row),
)}
Expand Down
7 changes: 1 addition & 6 deletions frontend/src/components/admin/menu/DictionaryManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,12 +650,7 @@ function DictionaryManagement() {
</TableHead>
<TableBody>
{rows.map((row) => (
<TableRow
key={row.id}
onClick={() => {
setSelectedRowId(row.id);
}}
>
<TableRow key={row.id}>
{row.cells.map((cell) => renderCell(cell, row))}
</TableRow>
))}
Expand Down

0 comments on commit fde4785

Please sign in to comment.