Skip to content

Commit a71e6d5

Browse files
committed
chore: use safer ids in transformators
1 parent e7747c5 commit a71e6d5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

R/module_transform_data.R

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ ui_teal_transform_data <- function(id, transformators, class = "well") {
2323
transformators <- list(transformators)
2424
}
2525
checkmate::assert_list(transformators, "teal_transform_module")
26-
27-
labels <- lapply(transformators, function(x) attr(x, "label"))
28-
ids <- get_unique_labels(labels)
29-
names(transformators) <- ids
26+
names(transformators) <- sprintf("transformator_%d", seq_len(length(transformators)))
3027

3128
lapply(
3229
names(transformators),
@@ -83,9 +80,7 @@ srv_teal_transform_data <- function(id, data, transformators, modules = NULL, is
8380
transformators <- list(transformators)
8481
}
8582
checkmate::assert_list(transformators, "teal_transform_module", null.ok = TRUE)
86-
labels <- lapply(transformators, function(x) attr(x, "label"))
87-
ids <- get_unique_labels(labels)
88-
names(transformators) <- ids
83+
names(transformators) <- sprintf("transformator_%d", seq_len(length(transformators)))
8984

9085
moduleServer(id, function(input, output, session) {
9186
module_output <- Reduce(

0 commit comments

Comments
 (0)