Skip to content

Commit

Permalink
fix: initialXY might not be available
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloimparato committed Oct 11, 2024
1 parent 9a15db1 commit 285b3a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ start_app <- function(graph, layout) {
igraph::as_data_frame("vertices") |>
dplyr::select(
id = name,
initialX = x,
initialY = y,
component,
tidyselect::any_of(c("color", "size"))
tidyselect::any_of(
c("initialX" = x, "initialY" = y, "color", "size")
)
)

graph_json <- jsonlite::toJSON(list(
Expand Down

0 comments on commit 285b3a8

Please sign in to comment.