Skip to content

Commit 1e701da

Browse files
authored
IRSA-7231: Merge PR #1845 from Caltech-IPAC/IRSA-7231-download-button-bug
IRSA-7231: Fix extra Prepare Download button in Spherex Spectrophotometry results
2 parents 04053f0 + db15c42 commit 1e701da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/firefly/js/templates/common/ttFeatureWatchers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {getActiveTableId, getMetaEntry, getTableUiByTblId, getTblById} from '../
77
import {DownloadButton, DownloadOptionPanel} from '../../ui/DownloadDialog.jsx';
88
import {getDataServiceOption, getDataServiceOptionByTable, getDataServiceOptionsFallback,
99
} from '../../ui/tap/DataServicesOptions';
10-
import {findTableCenterColumns, hasDataLinkSvcDesc, hasObsCoreLikeDataProducts, isDatalinkTable
10+
import {findTableCenterColumns, hasDataLinkSvcDesc, hasObsCoreLikeDataProducts, isDatalinkTable, isDataProductsTable
1111
} from '../../voAnalyzer/TableAnalysis.js';
1212
import {getCatalogWatcherDef} from '../../visualize/saga/CatalogWatcher.js';
1313
import {getUrlLinkWatcherDef} from '../../visualize/saga/UrlLinkWatcher.js';
@@ -74,6 +74,8 @@ function setupObsCorePackaging(tbl_id) {
7474
}
7575
if (!enabled) return;
7676

77+
if (!isDataProductsTable(tbl_id)) return;
78+
7779
const dlProps = getDataServiceOptionByTable('obsCoreDownloadProps', table, {}) || {};
7880

7981
const {tbl_ui_id, leftButtons=[]}= getTableUiByTblId(tbl_id) ?? {} ;

0 commit comments

Comments
 (0)