Skip to content

Commit e7130f2

Browse files
committed
Move catch to the end of the logic for version request handlers
1 parent 7c23dea commit e7130f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dash/dash-renderer/src/components/error/menu/VersionInfo.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ async function requestDashVersionInfo(config) {
5555
}).toString();
5656
return fetch(dashVersionUrl + '?' + queryParams, {mode: 'cors'})
5757
.then(response => response.json())
58-
.catch(() => {
59-
return {};
60-
})
6158
.then(body => {
6259
if (body && body.version && body.link) {
6360
localStorage.setItem(
@@ -70,6 +67,9 @@ async function requestDashVersionInfo(config) {
7067
} else {
7168
return {};
7269
}
70+
})
71+
.catch(() => {
72+
return {};
7373
});
7474
}
7575
}

0 commit comments

Comments
 (0)