From 2d7aa19e099e08f4fd02b29c9b840f666a54a45a Mon Sep 17 00:00:00 2001 From: Julio Zynger Date: Tue, 1 Mar 2022 14:15:36 +0100 Subject: [PATCH] Remove redundant cast Signed-off-by: Julio Zynger --- .../components/PeriskopErrorsTable/PeriskopErrorsTable.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();