Skip to content

Commit

Permalink
Fix loading of collections with a minimum size of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
metehaansever authored Dec 10, 2024
1 parent 1f0dad5 commit 947f3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anvio/data/interactive/js/dialogs/load-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function LoadCollectionDialog() {
</div>
<div class="col-md-6 col-md-offset-3 form-inline" style="${mode != 'full' ? 'display:none' : ''}">
<br /> Minimum bin size:
<input type="text" value="1" size="4" class="form-control input-xs threshold-value">
<input type="text" value="0" size="4" class="form-control input-xs threshold-value">
<select class="form-control input-xs threshold-base">
<option value="1000">K</option>
<option value="1000000">M</option>
Expand Down Expand Up @@ -107,7 +107,7 @@ LoadCollectionDialog.prototype.LoadCollection = function() {

let threshold_value = this.dialog.querySelector('.threshold-value').value;
let threshold_base = this.dialog.querySelector('.threshold-base').value;
let threshold = parseInt(threshold_value) * parseInt(threshold_base);
let threshold = parseInt(threshold_value) * (parseInt(threshold_base) || 1);

$.ajax({
type: 'GET',
Expand Down

0 comments on commit 947f3a3

Please sign in to comment.