Skip to content
Snippets Groups Projects
Commit 6b31abe2 authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fix #256

parent 277bae6f
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,9 @@ export default { ...@@ -74,7 +74,9 @@ export default {
}, },
filterFiles(loadArray) { filterFiles(loadArray) {
const filterFile = (file) => { const filterFile = (file) => {
if (this.relatedTermOfUse({parent: file, relationship: 'terms-of-use'}).attributes['download-condition'] !== 0) { let fileTermsOfUse = this.relatedTermOfUse({parent: file, relationship: 'terms-of-use'});
if (fileTermsOfUse !== null && fileTermsOfUse.attributes['download-condition'] !== 0) {
return false; return false;
} }
if (this.selectedFolderId !== '' && this.selectedFolderId !== file.relationships.parent.data.id) { if (this.selectedFolderId !== '' && this.selectedFolderId !== file.relationships.parent.data.id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment