Skip to content

Commit

Permalink
Fix bug where filters could be repeated
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrembilla committed Jan 16, 2025
1 parent fb8da99 commit dafd572
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/resources/assets/js/components/annotationFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,13 @@ export default {
}
let logicalString;
//convert to integer
this.selectedFilterValue[1] = +this.selectedFilterValue[1];
if (this.negate) {
logicalString = "is not";
this.selectedFilterValue[1] = -this.selectedFilterValue[1];
if (this.selectedFilterValue > 0){
this.selectedFilterValue[1] = -this.selectedFilterValue[1];
}
} else {
logicalString = "is";
}
Expand Down

0 comments on commit dafd572

Please sign in to comment.