Skip to content

Commit 3ba0088

Browse files
authored
1 parent 28ce726 commit 3ba0088

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/utils.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,11 @@ set_chunk_attrs <- function(teal_card,
405405
return(teal_card)
406406
}
407407

408-
if (length(inner_classes) > 0 && !checkmate::test_multi_class(teal_card[[current_ix]][[1]], inner_classes)) {
408+
if (
409+
length(inner_classes) > 0 &&
410+
length(teal_card[[current_ix]]) >= 1 &&
411+
!checkmate::test_multi_class(teal_card[[current_ix]][[1]], inner_classes)
412+
) {
409413
next
410414
}
411415

0 commit comments

Comments
 (0)