]> source.dussan.org Git - gitea.git/commitdiff
Add missed return to actions view fetch (#27289) (#27293)
authorGiteabot <teabot@gitea.io>
Wed, 27 Sep 2023 01:10:21 +0000 (09:10 +0800)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 01:10:21 +0000 (09:10 +0800)
Backport #27289 by @silverwind

Should fix: https://github.com/go-gitea/gitea/issues/27213

@denyskon can you test this? I can not reproduce this error locally.

Co-authored-by: silverwind <me@silverwind.io>
web_src/js/components/RepoActionView.vue

index da06dd9cb60ddfff498a50058bdaa1e3ff8bf5b2..797869b78cead6742598958c470200f93f9bee40 100644 (file)
@@ -225,7 +225,8 @@ const sfc = {
             this.fetchArtifacts(), // refresh artifacts if upload-artifact step done
           ]);
         } catch (err) {
-          if (!(err instanceof TypeError)) throw err; // avoid network error while unloading page
+          if (err instanceof TypeError) return; // avoid network error while unloading page
+          throw err;
         }
 
         this.artifacts = artifacts['artifacts'] || [];