Skip to content
Snippets Groups Projects
Commit af17f15c authored by Jack Reed's avatar Jack Reed
Browse files

Ensure rights is an array

parent 9587281b
Branches
Tags
No related merge requests found
...@@ -138,7 +138,8 @@ export class CollectionDialog extends Component { ...@@ -138,7 +138,8 @@ export class CollectionDialog extends Component {
if (error) return null; if (error) return null;
if (!ready) return this.placeholder(); if (!ready) return this.placeholder();
const rights = manifest && (manifest.getProperty('rights') || manifest.getProperty('license')); const rights = manifest && (asArray(manifest.getProperty('rights') || manifest.getProperty('license')));
const requiredStatement = manifest const requiredStatement = manifest
&& asArray(manifest.getRequiredStatement()).filter(l => l.getValue()).map(labelValuePair => ({ && asArray(manifest.getRequiredStatement()).filter(l => l.getValue()).map(labelValuePair => ({
label: labelValuePair.getLabel(), label: labelValuePair.getLabel(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment