From 7caba057c84e61a2ff39eb879121a7716c15374c Mon Sep 17 00:00:00 2001 From: mufaddal motiwala Date: Mon, 20 Dec 2021 11:50:52 +0530 Subject: [PATCH] add NEWRELIC_GUID_ANNOTATION in index Signed-off-by: mufaddal motiwala --- plugins/newrelic-dashboard/src/hooks/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/newrelic-dashboard/src/hooks/index.ts b/plugins/newrelic-dashboard/src/hooks/index.ts index 517f3b54b6..a170bd10f8 100644 --- a/plugins/newrelic-dashboard/src/hooks/index.ts +++ b/plugins/newrelic-dashboard/src/hooks/index.ts @@ -15,12 +15,12 @@ */ import { useEntity } from '@backstage/plugin-catalog-react'; -import { NEWRELIC_GUID } from '../constants'; +import { NEWRELIC_GUID_ANNOTATION } from '../constants'; export function useNewRelicDashboardEntity() { const { entity } = useEntity(); const integrationKey: string | undefined = - entity?.metadata?.annotations?.[NEWRELIC_GUID]; + entity?.metadata?.annotations?.[NEWRELIC_GUID_ANNOTATION]; const name: string | undefined = entity?.metadata?.name; return { integrationKey, name };