Skip to content

Commit

Permalink
adding null fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuljain-dev committed Oct 16, 2024
1 parent 53d97c0 commit bc8f126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/widgets/nuxeo-selectivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,7 @@ typedArrayTags[weakMapTag] = false;
} else if (
value &&
Array.isArray(value) &&
value.includes(options && options.term ? options.term.toLowerCase() : options.term)
value.includes(options && options.term ? options.term.toLowerCase() : null)
) {
resultsHtml = this.selectivity.template('tagExists');
} else if (!resultsHtml && !options.add) {
Expand Down
2 changes: 1 addition & 1 deletion ui/widgets/nuxeo-tag-suggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ import { escapeHTML } from './nuxeo-selectivity.js';
}

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

Expand Down

0 comments on commit bc8f126

Please sign in to comment.