diff --git a/plugins/newrelic-dashboard/src/Router.tsx b/plugins/newrelic-dashboard/src/Router.tsx index b3404db960..2fbec661ab 100644 --- a/plugins/newrelic-dashboard/src/Router.tsx +++ b/plugins/newrelic-dashboard/src/Router.tsx @@ -19,10 +19,10 @@ import { MissingAnnotationEmptyState } from '@backstage/core-components'; import { Button } from '@material-ui/core'; import { NewRelicDashboard } from './components/NewRelicDashboard'; import { useEntity } from '@backstage/plugin-catalog-react'; -import { NEWRELIC_GUID } from './constants'; +import { NEWRELIC_GUID_ANNOTATION } from './constants'; export const isNewRelicDashboardAvailable = (entity: Entity) => - Boolean(entity?.metadata?.annotations?.[NEWRELIC_GUID]); + Boolean(entity?.metadata?.annotations?.[NEWRELIC_GUID_ANNOTATION]); export const Router = () => { const { entity } = useEntity(); @@ -33,7 +33,7 @@ export const Router = () => { return ( <> - + diff --git a/plugins/newrelic-dashboard/src/constants.ts b/plugins/newrelic-dashboard/src/constants.ts index fd83a72132..dd0dcff2d8 100644 --- a/plugins/newrelic-dashboard/src/constants.ts +++ b/plugins/newrelic-dashboard/src/constants.ts @@ -13,4 +13,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export const NEWRELIC_GUID = 'newrelic.com/dashboard-guid'; +export const NEWRELIC_GUID_ANNOTATION = 'newrelic.com/dashboard-guid';