diff --git a/plugins/periskop/src/components/PeriskopErrorsTable/PeriskopErrorsTable.tsx b/plugins/periskop/src/components/PeriskopErrorsTable/PeriskopErrorsTable.tsx index ae299c6128..2292ed0013 100644 --- a/plugins/periskop/src/components/PeriskopErrorsTable/PeriskopErrorsTable.tsx +++ b/plugins/periskop/src/components/PeriskopErrorsTable/PeriskopErrorsTable.tsx @@ -83,9 +83,8 @@ function isNotFoundInInstance( export const PeriskopErrorsTable = () => { const { entity } = useEntity(); const entityPeriskopName: string = - (entity.metadata.annotations?.[PERISKOP_NAME_ANNOTATION] as - | string - | undefined) ?? entity.metadata.name; + entity.metadata.annotations?.[PERISKOP_NAME_ANNOTATION] ?? + entity.metadata.name; const periskopApi = useApi(periskopApiRef); const instanceNames = periskopApi.getInstanceNames();