Skip to content

Commit

Permalink
feat: make sure row is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Oct 15, 2024
1 parent d364fee commit cc523e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/board.loading/R/loading_table_datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ loading_table_datasets_server <- function(id,

shiny::observeEvent(loadbutton(), {
pgxfile <- table_selected_pgx()
# Make sure there is a row selected
if (is.null(pgxfile)) {
return(NULL)
}
pgxfilename <- file.path(auth$user_dir, pgxfile)
if (!file.exists(pgxfilename)) {
message("[LoadingBoard@load_react] ERROR pgxfile not found : ", pgxfilename, "\n")
Expand Down

0 comments on commit cc523e0

Please sign in to comment.