Просмотр исходного кода

Merge branch 'por-30-clone-job' of github.com:porter-dev/porter into por-30-clone-job

jnfrati 4 лет назад
Родитель
Сommit
c60e266d91
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      dashboard/src/main/home/launch/launch-flow/LaunchFlow.tsx

+ 4 - 4
dashboard/src/main/home/launch/launch-flow/LaunchFlow.tsx

@@ -73,17 +73,17 @@ const LaunchFlow: React.FC<PropsType> = (props) => {
   };
 
   const getFullActionConfig = (): FullActionConfigType => {
-    let imageRepoUri = `${selectedRegistry.url}/${templateName}-${selectedNamespace}`;
+    let imageRepoUri = `${selectedRegistry?.url}/${templateName}-${selectedNamespace}`;
 
     // DockerHub registry integration is per repo
-    if (selectedRegistry.service === "dockerhub") {
-      imageRepoUri = selectedRegistry.url;
+    if (selectedRegistry?.service === "dockerhub") {
+      imageRepoUri = selectedRegistry?.url;
     }
 
     return {
       git_repo: actionConfig.git_repo,
       branch: branch,
-      registry_id: selectedRegistry.id,
+      registry_id: selectedRegistry?.id,
       dockerfile_path: dockerfilePath,
       folder_path: folderPath,
       image_repo_uri: imageRepoUri,