Skip to content

Commit

Permalink
fix bug in galah_config where atlas couldn't be updated (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwestgate committed May 17, 2023
1 parent c9d470d commit d8ee938
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions R/galah_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,17 @@ galah_config <- function(...) {

# check all values in dots to ensure they are valid
result <- restructure_config(dots)

# add to `potions` object
brew(result, method = "leaves")
if(any(names(result) == "atlas")){
brew(atlas = list(atlas = result$atlas))
result <- result[names(result) != "atlas"]
}

if(length(result) > 0){
brew(result, method = "leaves")
}

}else{
x <- pour()
class(x) <- c("galah_config", "list")
Expand Down

0 comments on commit d8ee938

Please sign in to comment.