mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Security Solution] [Platform] do not display index if a rule has a data view and index defined on it (#137305)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
a58b705077
commit
2b08fcecbb
1 changed files with 5 additions and 0 deletions
|
@ -164,6 +164,7 @@ export const addFilterStateIfNotThere = (filters: Filter[]): Filter[] => {
|
|||
};
|
||||
|
||||
/* eslint complexity: ["error", 25]*/
|
||||
// eslint-disable-next-line complexity
|
||||
export const getDescriptionItem = (
|
||||
field: string,
|
||||
label: string,
|
||||
|
@ -247,6 +248,10 @@ export const getDescriptionItem = (
|
|||
} else if (Array.isArray(get(field, data)) && field !== 'threatMapping') {
|
||||
const values: string[] = get(field, data);
|
||||
return buildStringArrayDescription(label, field, values);
|
||||
} else if (field === 'index') {
|
||||
if (get('dataViewId', data)) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
const description: string = get(field, data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue