fix error on new data in table 1

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-02-18 11:36:07 +01:00
parent 262a1316b0
commit c2b4b34215
No known key found for this signature in database

View file

@ -498,7 +498,7 @@ server <- function(input, output, session) {
}
})() |>
(\(.x){
if (input$add_p == "yes") {
if (input$add_p == "yes" & !is.null(by.var)) {
.x |>
gtsummary::add_p() |>
gtsummary::bold_p()