Skip to content
Snippets Groups Projects
Commit 6fd37790 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Do not show any POTCAR files in GUI.

parent ffa86aeb
No related branches found
No related tags found
1 merge request!89V0.7.5
Pipeline #68883 passed
...@@ -177,7 +177,7 @@ class RawFiles extends React.Component { ...@@ -177,7 +177,7 @@ class RawFiles extends React.Component {
} }
filterPotcar(file) { filterPotcar(file) {
if (file.toLowerCase().endsWith('potcar')) { if (file.includes('POTCAR') && !file.endsWith('.stripped')) {
return this.props.user && 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 { } else {
return true return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment