Skip to content

Commit

Permalink
Fix the silent error in tm_a_pca (#688)
Browse files Browse the repository at this point in the history
Closes #644
  • Loading branch information
vedhav authored Feb 27, 2024
1 parent 09ccfc1 commit 2aabf8d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/tm_a_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,10 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
response[[i]]$select$multiple <- FALSE
response[[i]]$select$always_selected <- NULL
response[[i]]$select$selected <- NULL
response[[i]]$select$choices <- var_labels(isolate(data())[[response[[i]]$dataname]])
response[[i]]$select$choices <- setdiff(
response[[i]]$select$choices,
unlist(teal.data::join_keys(isolate(data()))[[response[[i]]$dataname]])
)
all_cols <- teal.data::col_labels(isolate(data())[[response[[i]]$dataname]])
ignore_cols <- unlist(teal.data::join_keys(isolate(data()))[[response[[i]]$dataname]])
color_cols <- all_cols[!names(all_cols) %in% ignore_cols]
response[[i]]$select$choices <- choices_labeled(names(color_cols), color_cols)
}

selector_list <- teal.transform::data_extract_multiple_srv(
Expand Down

0 comments on commit 2aabf8d

Please sign in to comment.