Skip to content

Commit

Permalink
make more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
bzkrouse committed Apr 11, 2024
1 parent 9679606 commit a0fe22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/print_to_gt.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ convert_ws_unicode <- function(gt_table){

locations <- list(cells_body())

if (any(!is.na(gt_table[["_stub_df"]]$row_id)) || any(!is.na(gt_table[["_stub_df"]]$group_id))){
if (sum(c(!is.na(gt_table[["_stub_df"]]$row_id),!is.na(gt_table[["_stub_df"]]$group_id)) > 0)){

locations <- c(locations,
list(cells_stub()))
Expand Down

0 comments on commit a0fe22a

Please sign in to comment.