Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoBeeAkto committed Dec 31, 2024
1 parent 2cc072e commit ff35d73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function DropdownSearch(props) {
setTimeout(() => {
if (value === '' && selectedOptions.length === 0) {
const options = deselectedOptions.slice(0, defaultSliceValue);
const title = options.length >= defaultSliceValue
const title = options.length > defaultSliceValue
? `Showing ${options.length} result${func.addPlurality(options.length)} only. (type more to refine results)`
: "Showing all results";
const nestedOptions = [{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ApiGroupModal(props){
label="Select API group"
placeholder="Select API group"
optionsList={
allCollections.filter((x) => { return (x.type === 'API_GROUP' && x.deactivated === false) }).map((x) => {
activatedGroupCollections.map((x) => {
return {
label: x.displayName,
value: x.displayName
Expand Down

0 comments on commit ff35d73

Please sign in to comment.