Skip to content
Snippets Groups Projects

Hot fix for GUI exception on rawfiles with POTCAR.

Merged Markus Scheidgen requested to merge v0.7.5 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -178,7 +178,7 @@ class RawFiles extends React.Component {
filterPotcar(file) {
if (file.toLowerCase().endsWith('potcar')) {
return this.props.data.uploader.user_id === this.props.user.sub
return this.props.user && this.props.data.uploader.user_id === this.props.user.sub
} else {
return true
}
Loading