Skip to content

Commit

Permalink
fix bug when cav_rep_list is NULL (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
helder-ribeiro authored Mar 31, 2023
1 parent 3190b5e commit 12a3b9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kvfinder-web-portal/R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ app_server <- function(input, output, session) {
{
protein_rep_list <<- c() # always initialize an empty list of protein representations when clicking on view button
cav_rep_list <<- c()
cav_rep_list <<- c(cav_rep_list, 'point') # add initial rep for the cavities to avoid NULL when running a second job
protein_col_scheme_list <<- c() # always initialize an empty list of protein color scheme when clicking on view button
# use "residue index" as the first protein color scheme
protein_col_scheme_list <<- c(protein_col_scheme_list, "Residue index")
Expand Down Expand Up @@ -610,6 +611,8 @@ app_server <- function(input, output, session) {
observeEvent(input$view_str_pg2, {
print(protein_rep_list)
protein_rep_list <<- c() # always initialize an empty list of protein representations when clicking on view button
cav_rep_list <<- c()
cav_rep_list <<- c(cav_rep_list, 'point') # add initial rep for the cavities to avoid NULL when running a second job
# protein_col_list <<- c(protein_col_list, "residueindex") #that one before!
# protein_col_scheme_list <<- c(protein_col_scheme_list, "white")
# now
Expand Down

0 comments on commit 12a3b9f

Please sign in to comment.