Skip to content

Commit

Permalink
Add tabtype 'resources' conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
upendrakumbham committed Feb 19, 2024
1 parent 532389c commit 1f9aa46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function enableExperimentPageTab(tab) {
const resultTab = 'results'
const experimentDesignTab = 'experiment-design'
const supplementaryInformationTab = 'supplementary-information'
const downloadTab = 'download'
const downloadTab = 'resources'

if (isThistabType(tab, resultTab)) {
if (Array.isArray(tab.props.ks) && (tab.props.plotTypesAndOptions)) {
Expand All @@ -51,7 +51,7 @@ function enableExperimentPageTab(tab) {
tabTypeComponent.push({supplementaryInformationTab : SupplementaryInformationRoute})
return tab.name;
}
} else {
} else if (isThistabType(tab, downloadTab)) {
if (Array.isArray(tab.props.data)) {
tabTypeComponent.push({'resources': DownloadsRoute})
return tab.name;
Expand Down

0 comments on commit 1f9aa46

Please sign in to comment.