瀏覽代碼

gracefully handle no usage set'

Justin Rhee 3 年之前
父節點
當前提交
c96d0b5cae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dashboard/src/components/ProvisionerFlow.tsx

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

@@ -23,7 +23,7 @@ const ProvisionerFlow: React.FC<Props> = ({
     if (!hasBillingEnabled) {
       return false;
     }
-    return usage.current.clusters >= usage.limit.clusters;
+    return usage?.current.clusters >= usage?.limit.clusters;
   }, [usage]);
 
   if (currentStep === "cloud") {