Skip to content

Commit

Permalink
Addressed suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Dec 13, 2024
1 parent 64cc8c7 commit 0356414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/annot-categorical.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"updateAnnotationCount"
]),
filterOptions(option, label, search) {
// Match the first character of the label with the first character of the search string
if (!label || search[0].toLowerCase() !== label[0].toLowerCase()) {
return false;
}
Expand All @@ -164,11 +165,10 @@
while (labelIndex < label.length) {
if (label[labelIndex].toLowerCase() === searchChar) {
matchFound = true;
labelIndex++;
break;
}
labelIndex++;
}
labelIndex++;
if (!matchFound) {
return false;
Expand Down
4 changes: 2 additions & 2 deletions components/category-toolgroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"alterColumnToToolMapping"
]),
filterOptions(option, label, search) {
// Match the first character of the label with the first character of the search string
if (!label || search[0].toLowerCase() !== label[0].toLowerCase()) {
return false;
}
Expand All @@ -98,11 +99,10 @@
while (labelIndex < label.length) {
if (label[labelIndex].toLowerCase() === searchChar) {
matchFound = true;
labelIndex++;
break;
}
labelIndex++;
}
labelIndex++;
if (!matchFound) {
return false;
Expand Down

0 comments on commit 0356414

Please sign in to comment.