Skip to content

Commit

Permalink
fix plot profile
Browse files Browse the repository at this point in the history
  • Loading branch information
sahas56 committed Sep 24, 2024
1 parent 416980a commit 7db79cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/mod_goutput.R
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ mod_goutput_server <- function(id, sourcedata, repName, filters, process_btn) {
req(length(plotly::event_data("plotly_click", source = "plot_output")) > 0)
runjs("Shiny.setInputValue('plotly_click-plot_output', null);")
}) %>%
bindEvent(list(repName(), rv$goutput$drill_plt$data, rv$goutput$plot$data))
bindEvent(list(repName(), rv$goutput$x$data, rv$goutput$plot$data))

observe({
if (is.null(plotly::event_data("plotly_click", source = "plot_output"))) {
Expand Down Expand Up @@ -596,7 +596,7 @@ mod_goutput_server <- function(id, sourcedata, repName, filters, process_btn) {
"plot_profile_1",
sourcedata = reactive(sourcedata()),
sel_rows = reactive(input$plot_listing_rows_selected),
datain = reactive(filters()$ae_pre$dout),
datain = reactive(filters()$ae_pre),
plot_data = plot_data
)

Expand Down
2 changes: 1 addition & 1 deletion R/mod_plot_profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ mod_plot_profile_server <- function(id, sourcedata, sel_rows, datain, plot_data)
observe({
req(sel_rows())
req(datain())
datain <- list(AE = datain())
datain <- list(AE = datain()$data)
dom_names <- names(rv$sourcedata)
if (any(c("cm", "adcm") %in% dom_names)) {
datain[["CM"]] <- rv$sourcedata[[dom_names[endsWith(dom_names, "cm")][1]]]
Expand Down

0 comments on commit 7db79cb

Please sign in to comment.