mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Cloud Security] Fix search in benchmark page (#161093)
This commit is contained in:
parent
9685de25e0
commit
122977ef09
2 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@ export const useFindCspRuleTemplates = (
|
|||
[CSP_RULE_TEMPLATE_SAVED_OBJECT_TYPE, { search, page, perPage, packagePolicyId }],
|
||||
() => {
|
||||
return http.get<GetCspRuleTemplateResponse>(FIND_CSP_RULE_TEMPLATE_ROUTE_PATH, {
|
||||
query: { packagePolicyId, page, perPage },
|
||||
query: { packagePolicyId, page, perPage, search },
|
||||
version: FIND_CSP_RULE_TEMPLATE_API_CURRENT_VERSION,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -60,9 +60,9 @@ const findCspRuleTemplateHandler = async (
|
|||
filter: getBenchmarkTypeFilter(benchmarkId),
|
||||
});
|
||||
|
||||
const cspRulesTemplates = cspRulesTemplatesSo.saved_objects.map((cspRuleTemplate) => {
|
||||
return { ...cspRuleTemplate.attributes };
|
||||
});
|
||||
const cspRulesTemplates = cspRulesTemplatesSo.saved_objects.map(
|
||||
(cspRuleTemplate) => cspRuleTemplate.attributes
|
||||
);
|
||||
|
||||
return {
|
||||
items: cspRulesTemplates,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue