Skip to content

Commit

Permalink
removed optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Nov 17, 2023
1 parent 200aa25 commit ebfbc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ function getCategoryListSections(categories, recentlyUsedCategories, selectedOpt
function getTagsOptions(tags) {
return _.map(tags, (tag) => {
// This is to remove unnecessary escaping backslash in tag name sent from backend.
const tagName = tag?.name?.replace(/(\\)+/g, '');
const tagName = tag.name && tag.name.replace(/(\\)+/g, '');

return {
text: tagName,
Expand Down

0 comments on commit ebfbc79

Please sign in to comment.