Skip to content

Commit

Permalink
optimized code
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuljain-dev committed Oct 14, 2024
1 parent 22451d0 commit c914d08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/widgets/nuxeo-tag-suggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ import { escapeHTML } from './nuxeo-selectivity.js';
}

_newEntryFormatter(term) {
return { id: term.toLowerCase(), displayLabel: term.toLowerCase(), newTag: true };
term = term.toLowerCase();
return { id: term, displayLabel: term, newTag: true };
}

_addedTagHandler(entry) {
Expand Down

0 comments on commit c914d08

Please sign in to comment.