Skip to content

Commit

Permalink
hotfix editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Dec 2, 2024
1 parent 273b1de commit c6fd6bb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion components/ui/ui-PlotModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,17 @@ PlotModuleServer <- function(id,
)
}
)
url <- getEditorUrl(session, res)
res2 <- session$registerDataObj(
"plotly_graph2", jsonlite::toJSON(list(data = as.list(csvFunc()[[1]]))),
function(data, req) {
httpResponse(
status = 200,
content_type = "application/json",
content = data
)
}
)
url <- getEditorUrl(session, res, res2)
tags$iframe(src = url, style = "height: 85vh; width: 100%;")
})
} else {
Expand Down

0 comments on commit c6fd6bb

Please sign in to comment.