Skip to content

Commit

Permalink
use row.id instead of entire obj
Browse files Browse the repository at this point in the history
  • Loading branch information
loganwc committed Dec 18, 2024
1 parent 13a53ce commit 3873375
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/Office/MoveQueue/MoveQueue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const columns = (moveLockFlag, isQueueManagementEnabled, showBranchFilter
{row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''}
</div>
) : (
<div data-label="assignedSelect" data-testid="assigned-col" className={styles.assignedToCol} key={row}>
<div data-label="assignedSelect" data-testid="assigned-col" className={styles.assignedToCol} key={row.id}>
<Dropdown
defaultValue={row.assignedTo?.officeUserId}
onChange={(e) => handleQueueAssignment(row.id, e.target.value, roleTypes.TOO)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const columns = (moveLockFlag, isQueueManagementEnabled, showBranchFilter
{row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''}
</div>
) : (
<div data-label="assignedSelect" data-testid="assigned-col" className={styles.assignedToCol} key={row}>
<div data-label="assignedSelect" data-testid="assigned-col" className={styles.assignedToCol} key={row.id}>
<Dropdown
defaultValue={row.assignedTo?.officeUserId}
onChange={(e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const counselingColumns = (moveLockFlag, originLocationList, supervisor,
return !row?.assignable ? (
<div>{row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''}</div>
) : (
<div data-label="assignedSelect" className={styles.assignedToCol} key={row}>
<div data-label="assignedSelect" className={styles.assignedToCol} key={row.id}>
<Dropdown
defaultValue={row.assignedTo?.officeUserId}
onChange={(e) => handleQueueAssignment(row.id, e.target.value, roleTypes.SERVICES_COUNSELOR)}
Expand Down Expand Up @@ -396,7 +396,7 @@ export const closeoutColumns = (
return !row?.assignable ? (
<div>{row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''}</div>
) : (
<div data-label="assignedSelect" className={styles.assignedToCol} key={row}>
<div data-label="assignedSelect" className={styles.assignedToCol} key={row.id}>
<Dropdown
defaultValue={row.assignedTo?.officeUserId}
onChange={(e) => handleQueueAssignment(row.id, e.target.value, roleTypes.SERVICES_COUNSELOR)}
Expand Down

0 comments on commit 3873375

Please sign in to comment.