Commit b2dfd22f authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃攢 Merge branch 'release/3.0.31'

parents d8e97a58 e9a5c85c
Pipeline #72526 passed with stage
in 14 seconds
{
"name": "@vue-unistra/formbuilder",
"version": "3.0.30",
"version": "3.0.31",
"main": "dist/index.js",
"files": [
"dist/*",
......
......@@ -334,8 +334,8 @@ export default Vue.extend({
customFilter(itemLabel: string, search: string | null, item: Option): boolean {
if (search === null) return true;
if (item.displayedBy !== undefined && item.displayedBy.length) {
return itemLabel.toLowerCase().includes(search) || item.displayedBy.some((optionId) => {
if (!!item.displayedBy?.length) {
return itemLabel?.toLowerCase().includes(search) || item.displayedBy.some((optionId) => {
const option: Option | undefined = this.getOption(optionId);
if (option) {
return optionId.toLowerCase().includes(search) || option.label.toLowerCase().includes(search);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment