Explorar o código

currentCluster null check (#3054)

d-g-town %!s(int64=3) %!d(string=hai) anos
pai
achega
394de52a1e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/components/ProvisionerSettings.tsx

+ 1 - 1
dashboard/src/components/ProvisionerSettings.tsx

@@ -124,7 +124,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
       ((!clusterName && true) ||
         (isReadOnly && props.provisionerError === "") ||
         props.provisionerError === "" ||
-        currentCluster.status === "UPDATING" ||
+        currentCluster?.status === "UPDATING" ||
         isClicked)
     );
   };