mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Fix condition
This commit is contained in:
parent
33ad361144
commit
3c6327c661
@ -294,7 +294,7 @@ export class ElasticWrapper {
|
||||
// Ensure '@timestamp' field is always excluded, >= 7.0.0 is using 'timestamp'
|
||||
try {
|
||||
const idx = currentFields.map(item => item.name).indexOf('@timestamp');
|
||||
if (idx || idx === 0) {
|
||||
if (idx > -1) {
|
||||
currentFields[idx].excluded = true;
|
||||
}
|
||||
} catch (error) {} // eslint-disable-line
|
||||
|
Loading…
Reference in New Issue
Block a user