瀏覽代碼

fix porter env app

Mohammed Nafees 3 年之前
父節點
當前提交
04bef556a2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cli/cmd/preview/utils.go

+ 2 - 2
cli/cmd/preview/utils.go

@@ -79,7 +79,7 @@ func GetSource(projectID uint, resourceName string, input map[string]interface{}
 
 		if err == nil {
 			output.SourceValues = values
-			output.IsApplication = output.Repo == "https://charts.getporter.dev"
+			output.IsApplication = true
 
 			return output, nil
 		}
@@ -106,7 +106,7 @@ func GetSource(projectID uint, resourceName string, input map[string]interface{}
 
 		if err == nil {
 			output.SourceValues = values
-			output.IsApplication = output.Repo == "https://charts.getporter.dev"
+			output.IsApplication = output.Repo == serverMetadata.DefaultAppHelmRepoURL || output.Repo == "https://charts.getporter.dev"
 
 			return output, nil
 		}