Skip to content

Commit

Permalink
this req is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Nov 19, 2024
1 parent b91b8c0 commit cbc401e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion R/dummy_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ example_module <- function(label = "example teal module",
table_data_decorated <- srv_teal_transform_data("decorate", data = table_data, transformators = decorators)

output$text <- renderPrint({
req(table_data_decorated())
table_data_decorated()[["object"]]
})

Expand Down
3 changes: 0 additions & 3 deletions vignettes/decorate-module-output.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ tm_decorated_plot <- function(label = "module", transformators = list(), decorat
plot_data_decorated <- srv_teal_transform_data("decorate", data = plot_data, transformators = decorators)
plot_r <- reactive({
req(plot_data_decorated())
plot_data_decorated()[["plot"]]
})
Expand Down Expand Up @@ -385,10 +384,8 @@ tm_decorated_plot <- function(
plot_r <- reactive({
req(input$plot_type)
if (input$plot_type == "plot 1") {
req(plot_1_data_decorated())
plot_1_data_decorated()[["plot_1"]]
} else if (input$plot_type == "plot 2") {
req(plot_2_data_decorated())
plot_2_data_decorated()[["plot_2"]]
}
})
Expand Down

0 comments on commit cbc401e

Please sign in to comment.