diff --git a/inst/actions/zen4R_deposit_record.R b/inst/actions/zen4R_deposit_record.R index 0ffe920a..4e324280 100644 --- a/inst/actions/zen4R_deposit_record.R +++ b/inst/actions/zen4R_deposit_record.R @@ -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)")