fix(l1): replace any casts with structural error types (eslint)
Frontend CI failed on @typescript-eslint/no-explicit-any in three L1
post-review fix sites. Replace `(err as any).response...` with the
codebase's established structural cast
`(err as { response?: { data?: { detail?: string } } })`, matching
TicketPickerModal / FolderEditModal / ProceduralEditorPage. The
AccountSettingsPage 402 handler gets the fuller seat-limit detail shape.
tsc clean, eslint clean.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -237,7 +237,12 @@ export function AccountSettingsPage() {
|
||||
const invitesData = await accountsApi.getInvites()
|
||||
setInvites(invitesData)
|
||||
} catch (err) {
|
||||
const resp = (err as any)?.response
|
||||
const resp = (err as {
|
||||
response?: {
|
||||
status?: number
|
||||
data?: { detail?: { code?: string; role?: string; current?: number; limit?: number } }
|
||||
}
|
||||
}).response
|
||||
if (resp?.status === 402 && resp?.data?.detail?.code === 'seat_limit_exceeded') {
|
||||
const d = resp.data.detail
|
||||
const label = d.role === 'l1_tech' ? 'L1' : 'Engineer'
|
||||
|
||||
Reference in New Issue
Block a user