Skip to content

Commit 3620b60

Browse files
committed
Fix bootstrap reloading when 404
1 parent 81b538e commit 3620b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine-wizard/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ window.onload = function () {
167167
})
168168
.catch(function (err) {
169169
const errorCode = err.response ? err.response.status : null
170-
if (Math.floor(errorCode / 100) === 4) {
170+
if (Math.floor(errorCode / 100) === 4 && errorCode !== 404) {
171171
localStorage.removeItem(sessionKey)
172172
window.location.reload()
173173
} else {

0 commit comments

Comments
 (0)