Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle committed Oct 6, 2023
1 parent 163b960 commit eba9ddc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export default {
return this.options;
} else {
const lowerCaseSearchText = this.searchText.toLowerCase();
return this.options.filter(option => {
return option.toLowerCase().includes(lowerCaseSearchText);
});
return this.options.filter(option =>
option.toLowerCase().includes(lowerCaseSearchText),
);
}
},
},
Expand Down Expand Up @@ -193,7 +193,7 @@ export default {
},
resetSearch() {
if (this.isResetSearch) {
return (this.searchText = "");
this.searchText = "";
}
},
away() {
Expand Down
8 changes: 4 additions & 4 deletions src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ export default {
return this.options;
} else {
const lowerCaseSearchText = this.searchText.toLowerCase();
return this.options.filter(option => {
return option.toLowerCase().includes(lowerCaseSearchText);
});
return this.options.filter(option =>
option.toLowerCase().includes(lowerCaseSearchText),
);
}
},
},
Expand Down Expand Up @@ -181,7 +181,7 @@ export default {
},
resetSearch() {
if (this.isResetSearch) {
return (this.searchText = "");
this.searchText = "";
}
},
onOptionClick(option) {
Expand Down

0 comments on commit eba9ddc

Please sign in to comment.