소스 검색

currentCluster null check (#3054)

d-g-town 3 년 전
부모
커밋
394de52a1e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
     );
   };