Skip to content

Commit

Permalink
fix(website): revert hotfix
Browse files Browse the repository at this point in the history
reverting the commits:
9eed2bc
565cc79
Now that SILO 0.2.16 fixed the issues
  • Loading branch information
fengelniederhammer committed Sep 2, 2024
1 parent 09241e9 commit be7ee37
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,6 @@ export const generateDownloadUrl = (
}
});

// Hotfix for LAPIS segment bug
// https://loculus.slack.com/archives/C05G172HL6L/p1724767046331529
if (
option.dataType.type === 'unalignedNucleotideSequences' &&
option.dataType.segment !== undefined &&
option.dataType.segment !== 'main'
) {
// Check if the param is already set to something >=1
// In that case, no need to lower it
const userParam = params.get(`length_${option.dataType.segment.toUpperCase()}From`) ?? '0';
const userParamAsInt = parseInt(userParam, 10);
const maximumFilterValue = Math.max(1, userParamAsInt).toString();

params.set(`length_${option.dataType.segment.toUpperCase()}From`, maximumFilterValue);
}

return {
url: `${baseUrl}?${params}`,
baseUrl,
Expand Down

0 comments on commit be7ee37

Please sign in to comment.