From af17f15c3dc182442508e080a6de3fd5b2576d0e Mon Sep 17 00:00:00 2001
From: Jack Reed <phillipjreed@gmail.com>
Date: Fri, 24 Jul 2020 13:34:48 -0600
Subject: [PATCH] Ensure rights is an array

---
 src/components/CollectionDialog.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/CollectionDialog.js b/src/components/CollectionDialog.js
index 4f8239403..59730884c 100644
--- a/src/components/CollectionDialog.js
+++ b/src/components/CollectionDialog.js
@@ -138,7 +138,8 @@ export class CollectionDialog extends Component {
     if (error) return null;
     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
       && asArray(manifest.getRequiredStatement()).filter(l => l.getValue()).map(labelValuePair => ({
         label: labelValuePair.getLabel(),
-- 
GitLab