Skip to content

Commit

Permalink
Resolving build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirSaif committed Jul 7, 2024
1 parent 922fdf2 commit a29791f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/common/src/dual-list-select/dual-list-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,22 @@ const DualListSelectCommon = (props) => {

const leftValues = rest.options
.filter((option) => {
if(!props.isFilterCaseInSensitive)
if (!props.isFilterCaseInSensitive){
return !rest.input.value.includes(option.value) && option.label.includes(state.filterOptions);
else
}
else{
return !rest.input.value.includes(option.value) && option.label.toLowerCase().includes(state.filterOptions.toLowerCase());
}
})
.sort((a, b) => (state.sortLeftDesc ? a.label.localeCompare(b.label) : b.label.localeCompare(a.label)));
const rightValues = rest.options
.filter((option) => {
if(!props.isFilterCaseInSensitive)
if (!props.isFilterCaseInSensitive){
return rest.input.value.includes(option.value) && option.label.includes(state.filterValue);
else
}
else{
return rest.input.value.includes(option.value) && option.label.toLowerCase().includes(state.filterValue.toLowerCase());
}
})
.sort((a, b) => (state.sortRightDesc ? a.label.localeCompare(b.label) : b.label.localeCompare(a.label)));

Expand Down

0 comments on commit a29791f

Please sign in to comment.