Skip to content

Commit

Permalink
[skip style] [skip vbump] Restyle files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 26, 2024
1 parent 0555cc8 commit 49b73bd
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions R/tm_g_events_term_id.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,21 +246,23 @@ srv_g_events_term_id <- function(id,
)
})

observeEvent(input$sort, {
sort <- if (is.null(input$sort)) " " else input$sort
updateTextInput(
session,
"title",
value = sprintf(
"Common AE Table %s",
c(
"term" = "Sorted by Term",
"riskdiff" = "Sorted by Risk Difference",
"meanrisk" = "Sorted by Mean Risk",
" " = ""
)[sort]
observeEvent(input$sort,
{
sort <- if (is.null(input$sort)) " " else input$sort
updateTextInput(
session,
"title",
value = sprintf(
"Common AE Table %s",
c(
"term" = "Sorted by Term",
"riskdiff" = "Sorted by Risk Difference",
"meanrisk" = "Sorted by Mean Risk",
" " = ""
)[sort]
)
)
)},
},
ignoreNULL = FALSE
)

Expand Down

0 comments on commit 49b73bd

Please sign in to comment.