Skip to content

Commit

Permalink
quick and very dirty fix: printing summaries would crash when an AE d…
Browse files Browse the repository at this point in the history
…ecision was administrated
  • Loading branch information
markvanderloo committed Apr 26, 2024
1 parent 8180974 commit f58af15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/assignments.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ smart.cap <- function(x) {
## just list_reviewers
print_sum <- function(arts, status, detail = NULL,
glue = "{art$id} ({art$days_since_submission}): {art$title}",
description = smart.cap(status), pre.width = 20) {
description = if(is.character(status)) smart.cap(status) else "Has AE decision", pre.width = 20) {
arts <- arts[if (is.logical(status)) status else arts$status == status, ]
if (nrow(arts) == 0)
return(invisible(NULL))
Expand Down

0 comments on commit f58af15

Please sign in to comment.