Skip to content

Commit 25d251c

Browse files
silverwindGiteaBot
authored andcommitted
Add missed return to actions view fetch (go-gitea#27289)
Should fix: go-gitea#27213
1 parent 283b19b commit 25d251c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/components/RepoActionView.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ const sfc = {
225225
this.fetchArtifacts(), // refresh artifacts if upload-artifact step done
226226
]);
227227
} catch (err) {
228-
if (!(err instanceof TypeError)) throw err; // avoid network error while unloading page
228+
if (err instanceof TypeError) return; // avoid network error while unloading page
229+
throw err;
229230
}
230231
231232
this.artifacts = artifacts['artifacts'] || [];

0 commit comments

Comments
 (0)