From eba9ddc640ef9a1342b08bb83329849e19c4ad31 Mon Sep 17 00:00:00 2001 From: Gaelle Date: Fri, 6 Oct 2023 11:22:58 +0200 Subject: [PATCH] refactoring --- .../BIMDataSelect/BIMDataSelectMulti.vue | 8 ++++---- .../BIMDataSelect/BIMDataSelectSingle.vue | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue b/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue index c43a7f2f..87fcca18 100644 --- a/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue +++ b/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue @@ -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), + ); } }, }, @@ -193,7 +193,7 @@ export default { }, resetSearch() { if (this.isResetSearch) { - return (this.searchText = ""); + this.searchText = ""; } }, away() { diff --git a/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue b/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue index 64c04311..f0f9e769 100644 --- a/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue +++ b/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue @@ -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), + ); } }, }, @@ -181,7 +181,7 @@ export default { }, resetSearch() { if (this.isResetSearch) { - return (this.searchText = ""); + this.searchText = ""; } }, onOptionClick(option) {