Feroze Mohideen 2 лет назад
Родитель
Сommit
6d495ae535
1 измененных файлов с 2 добавлено и 10 удалено
  1. 2 10
      dashboard/src/lib/hooks/usePorterYaml.ts

+ 2 - 10
dashboard/src/lib/hooks/usePorterYaml.ts

@@ -81,16 +81,8 @@ export const usePorterYaml = ({
         source?.type === "github" &&
         Boolean(source.git_repo_name) &&
         Boolean(source.git_branch),
-      retry: (_failureCount, error) => {
-        if (
-          // error response will be 403 status if user does not have access to the github installation
-          error.response?.status === 404 || error.response?.status === 403 ||
-          error.response.data?.error?.includes("not found") || error.response.data?.error?.includes("404")
-        ) {
-          setPorterYamlFound(false);
-          return false;
-        }
-        return true;
+      onError: () => {
+        setPorterYamlFound(false);
       },
       refetchOnWindowFocus: false,
     }