error collection: review fixes

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-09-15 14:29:34 +02:00
parent 6516c3d815
commit c89e954bf4
2 changed files with 1 additions and 3 deletions
@@ -89,7 +89,7 @@ export interface ErrorCollector<TContext extends {} = {}> {
AppErrorTypes[TCode]['context'],
keyof TContext
> extends infer IContext extends {}
? [{}] extends [IContext]
? {} extends IContext
? {
code: TCode;
message: string;
@@ -16,8 +16,6 @@
import { FrontendPluginInfo } from '@backstage/frontend-plugin-api';
import { JSX, useEffect, useState } from 'react';
// eslint-disable-next-line @backstage/no-relative-monorepo-imports
// eslint-disable-next-line @backstage/no-relative-monorepo-imports
import { AppError, AppErrorTypes } from '@backstage/frontend-app-api';
const DEFAULT_WARNING_CODES: Array<keyof AppErrorTypes> = [