Kaynağa Gözat

handle null check (#3076)

Co-authored-by: Justin Rhee <jusrhee@Justins-MacBook-Air.local>
jusrhee 3 yıl önce
ebeveyn
işleme
3bc3f086a8

+ 1 - 1
dashboard/src/main/home/add-on-dashboard/AddOnDashboard.tsx

@@ -149,7 +149,7 @@ const AppDashboard: React.FC<Props> = ({
         description="Add-ons and supporting workloads for this project."
         disableLineBreak
       />
-      {currentCluster.status === "UPDATING_UNAVAILABLE" ? (
+      {currentCluster?.status === "UPDATING_UNAVAILABLE" ? (
         <ClusterProvisioningPlaceholder />
       ) : (
         <>

+ 1 - 1
dashboard/src/main/home/app-dashboard/AppDashboard.tsx

@@ -201,7 +201,7 @@ const AppDashboard: React.FC<Props> = ({ }) => {
         description="Web services, workers, and jobs for this project."
         disableLineBreak
       />
-      {currentCluster.status === "UPDATING_UNAVAILABLE" ? (
+      {currentCluster?.status === "UPDATING_UNAVAILABLE" ? (
         <ClusterProvisioningPlaceholder />
       ) : (
         <>