Skip to content

Commit

Permalink
fix: remove rlang call and add changes to NEWS
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Sep 11, 2023
1 parent 8ed01b1 commit 095e334
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# teal.modules.hermes 0.1.5.9002

### Miscellaneous
* Added placeholders for `assaySpec`, `adtteSpec` and `geneSpec` inputs when no option is selected.
* Disabled the dropdown input for `assaySpec` and `adtteSpec` when there are no options available.

# teal.modules.hermes 0.1.5

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion R/adtteSpec.R
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ adtteSpecServer <- function(id, # nolint
)
session$sendCustomMessage(
"toggle_dropdown",
list(input_id = session$ns("paramcd"), disabled = rlang::is_empty(paramcd_choices))
list(input_id = session$ns("paramcd"), disabled = (length(paramcd_choices) == 0))
)
})

Expand Down
2 changes: 1 addition & 1 deletion R/assaySpec.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ assaySpecServer <- function(id, # nolint
updateSelectizeInput(session, "name", choices = choices)
session$sendCustomMessage(
"toggle_dropdown",
list(input_id = session$ns("name"), disabled = rlang::is_empty(choices))
list(input_id = session$ns("name"), disabled = (length(choices) == 0))
)
})

Expand Down

0 comments on commit 095e334

Please sign in to comment.