Просмотр исходного кода

Merge branch 'belanger/agent-v3-integration' into dev

Alexander Belanger 3 лет назад
Родитель
Сommit
2422ff5632

+ 4 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

@@ -711,6 +711,10 @@ const ExpandedChart: React.FC<Props> = (props) => {
 
   // Check if porter agent is installed. If not installed hide the `Logs` component
   useEffect(() => {
+    if (!currentCluster.agent_integration_enabled) {
+      return;
+    }
+
     api
       .detectPorterAgent(
         "<token>",