Skip to content

Commit

Permalink
Fixed UI append selection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
john-harrold committed Sep 7, 2024
1 parent 6e6a6da commit 612e646
Show file tree
Hide file tree
Showing 56 changed files with 259 additions and 264 deletions.
13 changes: 6 additions & 7 deletions R/MB_Server.R
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ MB_Server <- function(id,
# observe function below it.
output$ui_select_append_model = renderUI({
req(input[["element_selection"]])
input[["ui_mb_model"]]
#input[["ui_mb_model"]]
state = MB_fetch_state(id = id,
id_ASM = id_ASM,
input = input,
Expand All @@ -294,6 +294,7 @@ MB_Server <- function(id,
#------------------------------------
# Updates append_model selection based on the current model
observe({
req(input[["append_model"]])
req(input[["element_selection"]])
req(input[["ui_mb_model"]])
state = MB_fetch_state(id = id,
Expand Down Expand Up @@ -2706,13 +2707,11 @@ MB_fetch_appends = function(state, current_ele){
if(model_catalog[["isgood"]]){

# Getting all of the things the current component provides
rxinfo = fetch_rxinfo(component[["rx_obj"]])
provides = c(
component$rx_obj$params$output$primary,
component$rx_obj$params$output$secondary,
component$rx_obj$params$output$endpoint,
component$rx_obj$params$output$state)


rxinfo[["elements"]][["states"]],
rxinfo[["elements"]][["parameters"]],
rxinfo[["elements"]][["secondary"]])

# getting the models that are only ODEs and also have dependencies:
model_summary = state[["MB"]][["model_catalog"]][["summary"]]
Expand Down
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ articles:
model_builder: model_builder.html
noncompartmental_analysis: noncompartmental_analysis.html
simulate_rules: rmdhunks/simulate_rules.html
last_built: 2024-09-07T02:55Z
last_built: 2024-09-07T14:14Z

20 changes: 10 additions & 10 deletions docs/reference/CTS_add_covariate.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions docs/reference/CTS_add_rule.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions docs/reference/CTS_change_source_model.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 612e646

Please sign in to comment.