diff --git a/src/src/components/collections/collections.jsx b/src/src/components/collections/collections.jsx index fb829b3b..5bb14623 100644 --- a/src/src/components/collections/collections.jsx +++ b/src/src/components/collections/collections.jsx @@ -979,7 +979,7 @@ export function CollectionForm (props){
- {userAdmin === true && !editingCollection.doi_url && ( + {userAdmin === true && (editingCollection && !editingCollection.doi_url) && ( handlePublish()} diff --git a/src/src/components/collections/epicollections.jsx b/src/src/components/collections/epicollections.jsx index 3f787ee5..6c727273 100644 --- a/src/src/components/collections/epicollections.jsx +++ b/src/src/components/collections/epicollections.jsx @@ -1000,7 +1000,7 @@ export function EPICollectionForm (props){
- {userAdmin === true && !editingCollection.doi_url && ( + {userAdmin === true && (editingCollection && !editingCollection.doi_url) && ( handlePublish()}