We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 070ca84 commit dd93738Copy full SHA for dd93738
admin-ui/plugins/user-management/components/UserList.tsx
@@ -145,10 +145,10 @@ function UserList(): JSX.Element {
145
146
const handleGoToUserEditPage = useCallback(
147
(row: UserTableRowData): void => {
148
- const userData = row as unknown as CustomUser
149
const userId = row.tableData?.uuid || row.inum
150
if (!userId) return
151
- navigateToRoute(ROUTES.USER_EDIT(userId), { state: { selectedUser: userData } })
+ const { tableData, ...userData } = row
+ navigateToRoute(ROUTES.USER_EDIT(userId), { state: { selectedUser: userData as CustomUser } })
152
},
153
[navigateToRoute],
154
)
0 commit comments