From d4b7a480e69fa57c0f359b6ea3493627c4f1316d Mon Sep 17 00:00:00 2001 From: Jordan <51442161+JordanSh@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:59:03 +0300 Subject: [PATCH] [Cloud Security] Fix policy name increment (#167425) Co-authored-by: Paulo Henrique --- .../public/common/api/use_package_policy_list.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/cloud_security_posture/public/common/api/use_package_policy_list.ts b/x-pack/plugins/cloud_security_posture/public/common/api/use_package_policy_list.ts index d9b9c08a9bea1..8ce5a654af1d9 100644 --- a/x-pack/plugins/cloud_security_posture/public/common/api/use_package_policy_list.ts +++ b/x-pack/plugins/cloud_security_posture/public/common/api/use_package_policy_list.ts @@ -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[]; @@ -29,6 +30,7 @@ export const usePackagePolicyList = (packageInfoName: string, { enabled = true } async () => { try { const res = await http.get(packagePolicyRouteService.getListPath(), { + version: DETECTION_RULE_RULES_API_CURRENT_VERSION, query: { perPage: SO_SEARCH_LIMIT, page: 1,