Skip to content

Commit

Permalink
Add missed return to actions view fetch (go-gitea#27289)
Browse files Browse the repository at this point in the history
Should fix: go-gitea#27213
  • Loading branch information
silverwind authored and GiteaBot committed Sep 27, 2023
1 parent 283b19b commit 25d251c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_src/js/components/RepoActionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'] || [];
Expand Down

0 comments on commit 25d251c

Please sign in to comment.