Skip to content

Commit

Permalink
Fix condition + update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 15, 2024
1 parent 34606d9 commit ca5e5b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/tab_footnote.R
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,12 @@ tab_footnote <- function(
placement = c("auto", "right", "left")
) {

placement <- rlang::arg_match(placement)
rlang::check_required(footnote)
# Perform input object validation
stop_if_not_gt_tbl(data = data)

placement <- rlang::arg_match(placement)
rlang::check_required(footnote)

if (is.null(locations)) {

# We need to invoke `dt_footnotes_add()` here (and not use
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/utils_render_grid.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# create_columns_component_g creates columns and spanners
# create_columns_component_g() creates columns and spanners

Code
test
Expand Down

0 comments on commit ca5e5b5

Please sign in to comment.