Skip to content

Commit

Permalink
fixing-constant-name-typo (elastic#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSh authored Jan 3, 2022
1 parent efbd90f commit 317b17e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import { useQuery } from 'react-query';
import { useKibana } from '../../../../../../src/plugins/kibana_react/public';
import { CloudPostureStats } from '../../../common/types';
import { STATS_ROUTH_PATH } from '../../../common/constants';
import { STATS_ROUTE_PATH } from '../../../common/constants';

export const useCloudPostureStatsApi = () => {
const { http } = useKibana().services;
return useQuery(['csp_dashboard_stats'], () => http!.get<CloudPostureStats>(STATS_ROUTH_PATH));
return useQuery(['csp_dashboard_stats'], () => http!.get<CloudPostureStats>(STATS_ROUTE_PATH));
};

0 comments on commit 317b17e

Please sign in to comment.