diff --git a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx index a9af8d53e4..a8f95336d2 100644 --- a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx +++ b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardEntityList.tsx @@ -38,9 +38,9 @@ const useStyles = makeStyles({ export const DashboardEntityList = () => { const DashboardEntity = useNewRelicDashboardEntity(); const classes = useStyles(); - const NewRelicDashboardAPI = useApi(newRelicDashboardApiRef); + const newRelicDashboardAPI = useApi(newRelicDashboardApiRef); const { value, loading, error } = useAsync(async (): Promise => { - const dashboardObject: any = NewRelicDashboardAPI.getDashboardEntity( + const dashboardObject: any = newRelicDashboardAPI.getDashboardEntity( String(DashboardEntity?.integrationKey), ); return dashboardObject; diff --git a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx index 043b69880f..7599b2b41f 100644 --- a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx +++ b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshot.tsx @@ -34,9 +34,9 @@ export const DashboardSnapshot = ({ permalink, duration, }: Props) => { - const NewRelicDashboardAPI = useApi(newRelicDashboardApiRef); + const newRelicDashboardAPI = useApi(newRelicDashboardApiRef); const { value, loading, error } = useAsync(async (): Promise => { - const dashboardObject: any = NewRelicDashboardAPI.getDashboardSnapshot( + const dashboardObject: any = newRelicDashboardAPI.getDashboardSnapshot( guid, duration, ); diff --git a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx index a3435eee42..8015ada941 100644 --- a/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx +++ b/plugins/newrelic-dashboard/src/components/NewRelicDashboard/DashboardSnapshotList/DashboardSnapshotList.tsx @@ -80,9 +80,9 @@ const useStyles = makeStyles( ); export const DashboardSnapshotList = ({ guid }: Props) => { const styles = useStyles(); - const NewRelicDashboardAPI = useApi(newRelicDashboardApiRef); + const newRelicDashboardAPI = useApi(newRelicDashboardApiRef); const { value, loading, error } = useAsync(async (): Promise => { - const dashboardObject: any = NewRelicDashboardAPI.getDashboardEntity(guid); + const dashboardObject: any = newRelicDashboardAPI.getDashboardEntity(guid); return dashboardObject; }, []); const [value1, setValue1] = React.useState(0);