Skip to content

Commit

Permalink
Fix camel casing in the function
Browse files Browse the repository at this point in the history
  • Loading branch information
upendrakumbham committed Feb 19, 2024
1 parent 2c05e1a commit ca946ac
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const TabCommonPropTypes = {
// What component each tab type should render, coupled to ExperimentController.java
let tabTypeComponent = []

function isThistabType(tab,tabType) {
function isThisTabType(tab,tabType) {
return tab.type === tabType;
}

Expand All @@ -44,22 +44,22 @@ function enableExperimentPageTab(tab) {
const supplementaryInformationTab = 'supplementary-information'
const downloadTab = 'resources'

if (isThistabType(tab, resultTab)) {
if (isThisTabType(tab, resultTab)) {
if (!isObjectEmpty(tab.props.ks) && Array.isArray(tab.props.ks) && !isObjectEmpty(tab.props.plotTypesAndOptions)) {
tabTypeComponent.push({resultTab : TSnePlotViewRoute})
return tab.name;
}
} else if (isThistabType(tab, experimentDesignTab)) {
} else if (isThisTabType(tab, experimentDesignTab)) {
if (!isObjectEmpty(tab.props.table.data) && Array.isArray(tab.props.table.data)) {
tabTypeComponent.push({experimentDesignTab : ExperimentDesignRoute})
return tab.name;
}
} else if (isThistabType(tab, supplementaryInformationTab)) {
} else if (isThisTabType(tab, supplementaryInformationTab)) {
if (!isObjectEmpty(tab.props.sections) && Array.isArray(tab.props.sections)) {
tabTypeComponent.push({supplementaryInformationTab : SupplementaryInformationRoute})
return tab.name;
}
} else if (isThistabType(tab, downloadTab)) {
} else if (isThisTabType(tab, downloadTab)) {
if (!isObjectEmpty(tab.props.data) && Array.isArray(tab.props.data)) {
tabTypeComponent.push({'resources': DownloadsRoute})
return tab.name;
Expand Down

0 comments on commit ca946ac

Please sign in to comment.