mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Prevent from using AND if they are the same field (#1366)
This commit is contained in:
parent
0d346e2f60
commit
db7e40d1ed
@ -204,14 +204,12 @@ app.directive('wzTagFilter', function() {
|
||||
$scope.connectors[parentIdx].value = ';';
|
||||
} else {
|
||||
if (idx !== undefined) {
|
||||
const value = $scope.connectors[parentIdx].subgroup[idx].value;
|
||||
$scope.connectors[parentIdx].subgroup[idx].value =
|
||||
value === ';' ? ',' : ';';
|
||||
$scope.connectors[parentIdx].subgroup[idx].value = ',';
|
||||
} else {
|
||||
const value = $scope.connectors[parentIdx].value;
|
||||
$scope.connectors[parentIdx].value = value === ';' ? ',' : ';';
|
||||
buildQuery($scope.groupedTagList);
|
||||
}
|
||||
buildQuery($scope.groupedTagList);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user