Skip to content

Commit dd93738

Browse files
fix(admin-ui): edit form not opening when preview section is expanded… (#2537)
* fix(admin-ui): edit form not opening when preview section is expanded on Users search page (#2528) * feat(admin-ui): Resolve comments on the pr
1 parent 070ca84 commit dd93738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin-ui/plugins/user-management/components/UserList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ function UserList(): JSX.Element {
145145

146146
const handleGoToUserEditPage = useCallback(
147147
(row: UserTableRowData): void => {
148-
const userData = row as unknown as CustomUser
149148
const userId = row.tableData?.uuid || row.inum
150149
if (!userId) return
151-
navigateToRoute(ROUTES.USER_EDIT(userId), { state: { selectedUser: userData } })
150+
const { tableData, ...userData } = row
151+
navigateToRoute(ROUTES.USER_EDIT(userId), { state: { selectedUser: userData as CustomUser } })
152152
},
153153
[navigateToRoute],
154154
)

0 commit comments

Comments
 (0)