Skip to content

Commit

Permalink
small fix related to upper/lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
han16nah committed Jan 26, 2024
1 parent 555bb2f commit 00e50b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webserver/pytreedb_server/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ collectFilterParams = () => {
label = 'canopy_condition';
qvalue = value.toLowerCase();
};
if (label == 'labels') {
qvalue = value.toLowerCase();
};
// Read checked quality values correctly
if (label == 'quality') {
value = [], qvalue = [];
Expand Down Expand Up @@ -776,7 +779,7 @@ updateAvailableVals = (newFilterID, field) => {
case "Quality":
break;
case "Labels":
var has_labels = ['true', 'false'];
var has_labels = ['True', 'False'];
has_labels.forEach(cond => {
$(availableValuesEl).append(
'<li><a class="dropdown-item" onclick="fieldValueSelected(this)">' + cond + '</a></li>'
Expand Down

0 comments on commit 00e50b8

Please sign in to comment.