Skip to content

Commit

Permalink
[Cloud Security] Fix policy name increment (elastic#167425)
Browse files Browse the repository at this point in the history
Co-authored-by: Paulo Henrique <[email protected]>
  • Loading branch information
JordanSh and opauloh authored Sep 29, 2023
1 parent be98e21 commit d4b7a48
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import { useQuery } from '@tanstack/react-query';
import { useKibana } from '@kbn/kibana-react-plugin/public';
import { CoreStart } from '@kbn/core/public';
import { DETECTION_RULE_RULES_API_CURRENT_VERSION } from '../../../common/constants';

interface PackagePolicyListData {
items: PackagePolicy[];
Expand All @@ -29,6 +30,7 @@ export const usePackagePolicyList = (packageInfoName: string, { enabled = true }
async () => {
try {
const res = await http.get<PackagePolicyListData>(packagePolicyRouteService.getListPath(), {
version: DETECTION_RULE_RULES_API_CURRENT_VERSION,
query: {
perPage: SO_SEARCH_LIMIT,
page: 1,
Expand Down

0 comments on commit d4b7a48

Please sign in to comment.