mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Cloud Security] Fix policy name increment (#167425)
Co-authored-by: Paulo Henrique <paulo.henrique@elastic.co>
This commit is contained in:
parent
be98e218c0
commit
d4b7a480e6
1 changed files with 2 additions and 0 deletions
|
@ -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<PackagePolicyListData>(packagePolicyRouteService.getListPath(), {
|
||||
version: DETECTION_RULE_RULES_API_CURRENT_VERSION,
|
||||
query: {
|
||||
perPage: SO_SEARCH_LIMIT,
|
||||
page: 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue