diff options
author | Giteabot <teabot@gitea.io> | 2023-09-27 09:10:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 09:10:21 +0800 |
commit | 34c440996d187e09957613792dc34654f16a7349 (patch) | |
tree | 3c4386aa668d64b7e12c2273fa425c3db8eed300 | |
parent | 283b19bad5ea822f69403f0e200f83e3fa498147 (diff) | |
download | gitea-34c440996d187e09957613792dc34654f16a7349.tar.gz gitea-34c440996d187e09957613792dc34654f16a7349.zip |
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 <me@silverwind.io>
-rw-r--r-- | web_src/js/components/RepoActionView.vue | 3 |
1 files changed, 2 insertions, 1 deletions
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'] || []; |