Skip to content

Commit

Permalink
fix discovery batch loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Nov 8, 2024
1 parent 54a2b0a commit 25f708f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Discovery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ const DiscoveryWithMDSBackend: React.FC<{
: numberOfStudiesForAllStudiesBatch);
} else {
loadStudiesFunction = loadStudiesFromMDS;
loadStudiesParameters = [props.config?.features?.guidType, 10, false];
loadStudiesParameters = (numberOfBatchesLoaded === 1
? [props.config?.features?.guidType, 10, false] : [props.config?.features?.guidType, 2000, true]);
}
const rawStudiesRegistered = await loadStudiesFunction(
...loadStudiesParameters,
Expand Down

0 comments on commit 25f708f

Please sign in to comment.