Skip to content

Commit 1496175

Browse files
authored
Merge pull request #1368 from VEuPathDB/fix-hanging-small-orthogroups
Fix logic for showing spinner when tree is not fetched on purpose
2 parents 2faa2be + fe9a6b5 commit 1496175

File tree

1 file changed

+5
-1
lines changed
  • packages/sites/ortho-site/webapp/wdkCustomization/js/client/records

1 file changed

+5
-1
lines changed

packages/sites/ortho-site/webapp/wdkCustomization/js/client/records/Sequences.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,11 @@ export function RecordTable_Sequences(
399399

400400
// None shall pass! (hooks, at least)
401401

402-
if (!mesaState || !sortedRows || !tree || !treeResponse) {
402+
if (
403+
!mesaState ||
404+
!sortedRows ||
405+
(numSequences >= MIN_SEQUENCES_FOR_TREE && (!tree || !treeResponse))
406+
) {
403407
return <Loading />;
404408
}
405409

0 commit comments

Comments
 (0)