Skip to content

Commit

Permalink
fix: move validate inputs to renderDT
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Nov 22, 2024
1 parent 3e5f230 commit f94a658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tm_data_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ srv_data_table <- function(id,
set = names(isolate(data())[[dataname]]), message_fmt = "Not all selected variables exist in the data"
))
iv$enable()
# teal::validate_inputs(iv)

data_table_data <- reactive({
df <- data()[[dataname]]
Expand Down Expand Up @@ -371,6 +370,7 @@ srv_data_table <- function(id,

output$data_table <- DT::renderDataTable(server = server_rendering, {
req(data_table_data())
teal::validate_inputs(iv)
decorated_data_table_data()[["table"]]
})
})
Expand Down

0 comments on commit f94a658

Please sign in to comment.