We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 217a00a commit 724c172Copy full SHA for 724c172
1 file changed
apps/model_catalog/src/ValidationFramework.jsx
@@ -410,8 +410,10 @@ class ValidationFramework extends React.Component {
410
setStatus(response.data.status)
411
});
412
413
- const tokenPayload = jwtDecode(this.props.auth.token);
414
- this.setState({currentUser: tokenPayload.preferred_username})
+ if (this.props.auth.token) {
+ const tokenPayload = jwtDecode(this.props.auth.token);
415
+ this.setState({currentUser: tokenPayload.preferred_username});
416
+ }
417
418
datastore
419
.getValidFilterValues()
0 commit comments