Skip to content

Commit

Permalink
add already mapped log index fields to list of options (#845)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
  • Loading branch information
amsiglan committed Feb 7, 2024
1 parent a7c7eef commit e9ac83d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ export default class ConfigureFieldMapping extends Component<
Object.keys(mappingsData.properties).forEach((ruleFieldName) => {
mappedRuleFields.unshift(ruleFieldName);

if (mappingsData.properties[ruleFieldName].path) {
logFields.add(mappingsData.properties[ruleFieldName].path);
}

// Need this check to avoid adding undefined value
// When user removes existing mapping for default mapped values, the mapping will be undefined
if (existingMappings[ruleFieldName]) {
Expand Down

0 comments on commit e9ac83d

Please sign in to comment.