9be317c966b0eb4c05cfee143db116bb8def08a0
braney
  Tue Apr 19 14:08:17 2022 -0700
ignore taxId from hubs when user clicks on one of the native organisms

diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js
index cef5348..4ad291a 100644
--- src/hg/js/hgGateway.js
+++ src/hg/js/hgGateway.js
@@ -1363,31 +1363,31 @@
 
     function clearSpeciesInput() {
         // Replace anything typed into the species input with the watermark.
         clearWatermarkInput($('#speciesSearch'), speciesWatermark);
     }
 
     function clearPositionInput() {
         // Replace anything typed into the position input with the watermark.
         clearWatermarkInput($('#positionInput'), positionWatermark);
     }
 
     function setTaxId(taxId, db, doScrollToItem, doClearSpeciesInput) {
         // The user has selected a species (and possibly even a particular database) --
         // if we're not already using it, change to it.
         var cmd;
-        if (taxId !== uiState.taxId || (db && db !== uiState.db)) {
+        if (uiState.hubUrl !== null || taxId !== uiState.taxId || (db && db !== uiState.db)) {
             uiState.taxId = taxId;
             uiState.hubUrl = null;
             cmd = { setTaxId: { taxId: '' + taxId } };
             if (db) {
                 uiState.db = db;
                 cmd.setTaxId.db = db;
             }
             cart.send(cmd, handleSetTaxId);
             cart.flush();
             clearPositionInput();
         }
         highlightLabel('textEl_' + taxId, doScrollToItem);
         if (doClearSpeciesInput) {
             clearSpeciesInput();
         }