Skip to content

Commit 4b21e2e

Browse files
committed
ts check
1 parent cf7e225 commit 4b21e2e

File tree

21 files changed

+19
-657
lines changed

21 files changed

+19
-657
lines changed

frontend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pnpm-debug.log*
88
lerna-debug.log*
99
/build
1010
config.json
11+
tsconfig.tsbuildinfo
1112

1213
node_modules
1314
dist

frontend/src/client-validator/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function parseErrors(errors: ErrorObject[]): ValidationError[] {
5050
(out[i] = {
5151
invalidParams: {
5252
name: error.instancePath.split('/').slice(1).join('.'),
53-
reason: error.message,
53+
reason: error.message || 'Unknown error',
5454
},
5555
}),
5656
)

frontend/src/components/Combobox/UserComboboxOption.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Avatar, Group, Space } from '@mantine/core'
22
import RoleBadge from 'src/components/Badges/RoleBadge'
3-
import type { User } from 'src/gen/model'
3+
import type { UserResponse } from 'src/gen/model'
44
import { nameInitials } from 'src/utils/strings'
55

66
interface UserComboboxOptionProps {
7-
user: User
7+
user: UserResponse
88
}
99

1010
export default function UserComboboxOption({ user }: UserComboboxOptionProps) {

0 commit comments

Comments
 (0)