Skip to content

Commit 129dec0

Browse files
committed
Fix unsafe access of body.link
1 parent ed9a8ad commit 129dec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function requestDashVersionInfo(config) {
5959
return {};
6060
})
6161
.then(body => {
62-
if (body.version && body.link) {
62+
if (body && body.version && body.link) {
6363
localStorage.setItem(
6464
'cachedNewDashVersion',
6565
JSON.stringify(body.version)

0 commit comments

Comments
 (0)