Skip to content

Commit

Permalink
Pass tbl callback correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelburger committed Mar 25, 2024
1 parent 9f152c3 commit 74a66d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/config-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ tbl_callback <- function(x){

callback_field <- vctrs::field(x, "callback")
if (is.character(callback_field)) {
msg_ricu(paste("[tbl_callback] Using callback function: ", callback_field))
return(str_to_fun(callback_field))
}

Expand All @@ -405,7 +406,8 @@ tbl_callback <- function(x){

callback_value <- callback_field[[1]]
if (is.character(callback_value)) {
return(str_to_fun(callback_field[1]))
msg_ricu(paste("[tbl_callback] Using callback function: ", callback_value))
return(str_to_fun(callback_value))
}

return(identity_callback)
Expand Down

0 comments on commit 74a66d9

Please sign in to comment.