MSP-3229 replace part of 'any'
This commit is contained in:
1 parent
1b5570ad0d
commit
775062a509
4 files changed
+5
-4
No files matched your search
@@ -61,7 +61,7 @@ const LoginPage = () => {
|
||||
navigate(redirectUrl, { replace: true })
|
||||
localStorage.removeItem('redirectUrl')
|
||||
})
|
||||
.catch((err: any) => handleError(err))
|
||||
.catch((err: AxiosError<MSPError>) => handleError(err))
|
||||
}
|
||||
|
||||
const renderInternalAuthForm = () => {
|
||||
|
||||
@@ -111,7 +111,7 @@ const RolesPage = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const handleRemoveRole = (id: any) => {
|
||||
const handleRemoveRole = (id: string) => {
|
||||
const idAsNumber = parseInt(id, 10)
|
||||
removeRole(idAsNumber)
|
||||
.unwrap()
|
||||
|
||||
@@ -105,7 +105,7 @@ const UsersPage = () => {
|
||||
dataIndex: 'roles',
|
||||
key: 'roles',
|
||||
render: (values: number[]) => {
|
||||
const labels: any[] = []
|
||||
const labels: string[] = []
|
||||
values.forEach((value: number) => {
|
||||
const roleLabel = roles?.find((el) => el.id === value)
|
||||
if (roleLabel) {
|
||||
|
||||
Reference in new issue
Block a user