Skip to content

Commit ea39733

Browse files
teunbrandddsjoberg
andauthored
unname layers (#234)
Co-authored-by: Daniel Sjoberg <danield.sjoberg@gmail.com>
1 parent 7d2ef50 commit ea39733

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
.extract_arguments_from_attr <- function(x, attr_name) {
32-
lapply(x$layers, function(x) attr(x, attr_name, exact = TRUE)) %>%
32+
lapply(unname(x$layers), function(x) attr(x, attr_name, exact = TRUE)) %>%
3333
unlist(recursive = FALSE)
3434
}
3535

0 commit comments

Comments
 (0)