Skip to content

Commit

Permalink
fix #357
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Sep 5, 2023
1 parent ef05324 commit bbac626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/actions/zen4R_deposit_record.R
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function(action, entity, config){
#communities
if(length(communities)>0){
zenodo_metadata$metadata$communities <- list()
for(community in communities) zenodo_metadata$addCommunity(community, sandbox = ZENODO$sandbox)
for(community in communities) if(!is.na(community)) zenodo_metadata$addCommunity(community, sandbox = ZENODO$sandbox)
}
}else{
config$logger.info("Skipping update of Zenodo record metadata (option 'update_metadata' FALSE)")
Expand Down

0 comments on commit bbac626

Please sign in to comment.