Skip to content

Commit 9b8a9df

Browse files
committed
Add missed return to actions view fetch
1 parent eab20cb commit 9b8a9df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web_src/js/components/RepoActionView.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ 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) {
229+
return; // avoid network error while unloading page
230+
} else {
231+
throw err;
232+
}
229233
}
230234
231235
this.artifacts = artifacts['artifacts'] || [];

0 commit comments

Comments
 (0)