This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git

commit 2f4dfb4baa458b1ea799b893d69cd805d1653fbe
Author: Marat Gubaidullin <marat.gubaidul...@gmail.com>
AuthorDate: Thu Sep 22 13:00:23 2022 -0400

    Project info deployment status
---
 karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx 
b/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx
index 2e6dffe..74427e4 100644
--- a/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx
+++ b/karavan-app/src/main/webapp/src/projects/ProjectInfo.tsx
@@ -235,9 +235,8 @@ export class ProjectInfo extends React.Component<Props, 
State> {
     }
 
     getReplicasPanel(deploymentStatus: DeploymentStatus, env: string) {
-        console.log(deploymentStatus);
         const ok = (deploymentStatus && deploymentStatus?.readyReplicas > 0
-            && (deploymentStatus.unavailableReplicas === 0 || 
deploymentStatus.unavailableReplicas === undefined)
+            && (deploymentStatus.unavailableReplicas === 0 || 
deploymentStatus.unavailableReplicas === undefined || 
deploymentStatus.unavailableReplicas === null)
             && deploymentStatus?.replicas === deploymentStatus?.readyReplicas)
         return (
             <Flex justifyContent={{default: "justifyContentSpaceBetween"}} 
alignItems={{default: "alignItemsCenter"}}>

Reply via email to