Skip to content

Commit

Permalink
Fix [UI] nuclio function in 'Unhealthy' state should be accounted in …
Browse files Browse the repository at this point in the history
…'Failed' counter (#2553)
  • Loading branch information
illia-prokopchuk committed Jun 26, 2024
1 parent 1e7c2a6 commit eb18b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/ProjectFunctions/ProjectFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const ProjectFunctions = ({ fetchApiGateways, fetchNuclioFunctions, nuclioStore
0
)
const functionsFailed = groupeFunctionsRunning.reduce(
(prev, curr) => (curr.status.state === 'error' ? (prev += 1) : prev),
(prev, curr) => (['error', 'unhealthy'].includes(curr.status.state) ? (prev += 1) : prev),
0
)

Expand Down

0 comments on commit eb18b89

Please sign in to comment.