Kaynağa Gözat

welcome to stacks

David Townley 3 yıl önce
ebeveyn
işleme
4edc428a87

+ 3 - 3
dashboard/src/main/home/app-dashboard/expanded-app/ExpandedApp.tsx

@@ -346,9 +346,9 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
           <HeaderWrapper>
             <TitleSectionStacks
               icon={
-                appData.app.build_packs &&
-                renderIcon(appData.app.build_packs) != ""
-                  ? renderIcon(appData.app.build_packs)
+                appData.app?.build_packs &&
+                renderIcon(appData.app?.build_packs) != ""
+                  ? renderIcon(appData.app?.build_packs)
                   : integrationList.registry.icon
               }
               iconWidth="33px"

+ 2 - 2
dashboard/src/main/home/cluster-dashboard/expanded-chart/DeploymentTypeStacks.tsx

@@ -18,8 +18,8 @@ const DeploymentTypeStacks: React.FC<Props> = ({ appData }) => {
 
   const repository =
     githubRepository ||
-    appData.cluster.image_repo_uri ||
-    appData.cluster.config?.image?.repository;
+    appData.cluster?.image_repo_uri ||
+    appData.cluster?.config?.image?.repository;
 
   if (repository?.includes("hello-porter")) {
     return null;