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 and orouz committed Jan 13, 2022
1 parent 5c6257c commit d940710
Showing 1 changed file with 2 additions and 2 deletions.
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 d940710

Please sign in to comment.