Skip to content

Commit 4b2a31b

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ export const VersionInfo = ({config}) => {
149149

150150
useEffect(() => {
151151
requestDashVersionInfo(config).then(body => {
152-
setNewDashVersionLink(body.link);
153-
setNewDashVersion(body.version);
152+
if (body) {
153+
setNewDashVersionLink(body.link);
154+
setNewDashVersion(body.version);
155+
}
154156
});
155157
}, []);
156158

0 commit comments

Comments
 (0)