Skip to content

Commit

Permalink
Enable Creation of Collections/EPICollections for Admin users
Browse files Browse the repository at this point in the history
  • Loading branch information
BirdMachine committed Oct 21, 2024
1 parent 0fc666a commit e8e5371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/src/components/collections/collections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ export function CollectionForm (props){

<div className="row">
<div className="buttonWrapRight">
{userAdmin === true && !editingCollection.doi_url && (
{userAdmin === true && (editingCollection && !editingCollection.doi_url) && (
<LoadingButton
loading={publishing}
onClick={() => handlePublish()}
Expand Down
2 changes: 1 addition & 1 deletion src/src/components/collections/epicollections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ export function EPICollectionForm (props){

<div className="row">
<div className="buttonWrapRight">
{userAdmin === true && !editingCollection.doi_url && (
{userAdmin === true && (editingCollection && !editingCollection.doi_url) && (
<LoadingButton
loading={publishing}
onClick={() => handlePublish()}
Expand Down

0 comments on commit e8e5371

Please sign in to comment.