Skip to content

Commit 680ff8f

Browse files
committed
Return NULL if no papers in need_decision
1 parent 3e6a765 commit 680ff8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/late.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,9 @@ need_decision <- function(editor) {
221221
str_dup("*", sum(u > deadlines("needs editor")))
222222
}))
223223
output$ae[is.na(output$ae)] <- ""
224-
return(output)
224+
if(NROW(output) == 0L) {
225+
return(invisible(NULL))
226+
} else {
227+
return(output)
228+
}
225229
}

0 commit comments

Comments
 (0)