Skip to content

Commit

Permalink
Merge pull request #957 from singnet/data-preset-tab
Browse files Browse the repository at this point in the history
[SPT-767] fixed error in open service without training
  • Loading branch information
MarinaFedy authored Dec 25, 2024
2 parents ef6ecbc + 9fc6a33 commit b67d09d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Redux/actionCreators/ServiceDetailsActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const getIsTrainingAvailable = (detailsTraining, isLoggedIn) => {
return false;
}

if (!Object.prototype.hasOwnProperty.call(detailsTraining, "trainingMethods")) {
if (!Object.prototype.hasOwnProperty.call(detailsTraining, "trainingMethods") || !detailsTraining?.trainingMethods) {
return false;
}

Expand Down
12 changes: 5 additions & 7 deletions src/components/ServiceDetails/DataPreset/DatasetInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ const DatasetInfo = ({ classes, datasetParameters }) => {
</>
)}
</div>
{!datasetParameter?.value ?
(
<CircularProgress />
) :
(
<p className={classes.parameterValue}>{datasetParameter.value}</p>
)}
{!datasetParameter?.value ? (
<CircularProgress />
) : (
<p className={classes.parameterValue}>{datasetParameter.value}</p>
)}
</div>
))}
</div>
Expand Down

0 comments on commit b67d09d

Please sign in to comment.