Skip to content

Commit 582a8a3

Browse files
committed
revert changes on normalize_decorators
1 parent e5667d7 commit 582a8a3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

R/utils.R

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,13 @@ select_decorators <- function(decorators, scope) {
405405
#' @return A named list of lists with `teal_transform_module` objects.
406406
#' @keywords internal
407407
normalize_decorators <- function(decorators) {
408-
if (checkmate::test_names(names(decorators))) {
409-
lapply(decorators, list)
408+
if (checkmate::test_list(decorators, "teal_transform_module")) {
409+
if (checkmate::test_names(names(decorators))) {
410+
lapply(decorators, list)
411+
} else {
412+
list(default = decorators)
413+
}
410414
} else {
411-
list(default = decorators)
415+
decorators
412416
}
413417
}

0 commit comments

Comments
 (0)