Skip to content

Commit

Permalink
ensure proper handle situation without listing
Browse files Browse the repository at this point in the history
  • Loading branch information
elong0527 committed Apr 10, 2024
1 parent 58be0a6 commit f30e7c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/interactive_table1.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ interactive_table1 <- function(meta,
var_listing = var_listing,
display_total = total
)
names(tbl$listing)[is.na(names(tbl$listing))] <- "Missing"

if(! is.null(tbl$listing)){
names(tbl$listing)[is.na(names(tbl$listing))] <- "Missing"
}

# Display details in reactable
details_ggplot2 <- function(index) {
Expand Down

0 comments on commit f30e7c2

Please sign in to comment.