Skip to content

Commit 34c4409

Browse files
GiteaBotsilverwind
andauthored
Add missed return to actions view fetch (#27289) (#27293)
Backport #27289 by @silverwind Should fix: #27213 @denyskon can you test this? I can not reproduce this error locally. Co-authored-by: silverwind <[email protected]>
1 parent 283b19b commit 34c4409

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/components/RepoActionView.vue

Lines changed: 2 additions & 1 deletion
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)