From 34c440996d187e09957613792dc34654f16a7349 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 27 Sep 2023 09:10:21 +0800 Subject: [PATCH] Add missed return to actions view fetch (#27289) (#27293) 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 --- web_src/js/components/RepoActionView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index da06dd9cb6..797869b78c 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -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'] || [];