Skip to content

Commit

Permalink
Merge pull request #70 from CybercentreCanada/hotfix/dashboard_zero
Browse files Browse the repository at this point in the history
hotfix/dashboard_zero
  • Loading branch information
cccs-sgaron authored Apr 28, 2021
2 parents 74e226b + f5b98e8 commit 44a9b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/routes/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ const WrappedServiceCard = ({ service, max_inflight }) => {
const classes = useStyles();

useEffect(() => {
if (service.total !== 0 && service.instances === 0) {
if (service.scaler.target !== 0 && service.instances === 0) {
setError(t('service.error.none'));
} else if (service.metrics.fail_nonrecoverable > 0) {
setError(t('service.error.fail_nonrecoverable'));
Expand All @@ -773,7 +773,7 @@ const WrappedServiceCard = ({ service, max_inflight }) => {
</Tooltip>
)}
<div className={classes.title}>
{`${service.service_name} :: ${service.instances} / ${service.scaler.target || '-'}`}
{`${service.service_name} :: ${service.instances} / ${service.scaler.target}`}
</div>
</Grid>
<Grid item xs={6}>
Expand Down

0 comments on commit 44a9b75

Please sign in to comment.