Skip to content

Commit

Permalink
Fix converTagNameToId to use lowercase values
Browse files Browse the repository at this point in the history
  • Loading branch information
kowalczyk-krzysztof committed Oct 18, 2024
1 parent f8c4b9a commit 9bd8549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/saved_objects_tagging/public/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getTagsFromReferences = (references: SavedObjectReference[], allTag
};

export const convertTagNameToId = (tagName: string, allTags: Tag[]): string | undefined => {
const found = allTags.find((tag) => tag.name === tagName);
const found = allTags.find((tag) => tag.name.toLowerCase() === tagName.toLowerCase());
return found?.id;
};

Expand Down

0 comments on commit 9bd8549

Please sign in to comment.