Skip to content

Commit

Permalink
fix: switching between two apps (one with jobs and one without) now w…
Browse files Browse the repository at this point in the history
…orks
  • Loading branch information
DeepanshKhurana committed May 14, 2024
1 parent 8aa0766 commit 903ca2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/view/mod_job_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ server <- function(id, state) {

state$selected_job <- reactive({
index <- getReactableState("job_list_table", "selected")
if (isTruthy(index)) {
if (isTruthy(index) && length(job_list_data()) > 0) {
list(
"key" = job_list_data()[index, ]$key,
"id" = job_list_data()[index, ]$id
Expand Down

0 comments on commit 903ca2f

Please sign in to comment.