diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 95ddd53c3ec6..b97ae6daed11 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -910,13 +910,18 @@ function getCategoryListSections(categories, recentlyUsedCategories, selectedOpt * @returns {Array} */ function getTagsOptions(tags) { - return _.map(tags, (tag) => ({ - text: tag.name, - keyForList: tag.name, - searchText: tag.name, - tooltipText: tag.name, - isDisabled: !tag.enabled, - })); + return _.map(tags, (tag) => { + // This is to remove unnecessary escaping backslash in tag name sent from backend. + const tagName = tag.name && tag.name.replace(/\\{1,2}:/g, ':'); + + return { + text: tagName, + keyForList: tagName, + searchText: tagName, + tooltipText: tagName, + isDisabled: !tag.enabled, + }; + }); } /**