Skip to content

Commit

Permalink
fix issue with comparison in the filename triggering invalid input
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromiguelm committed Apr 18, 2024
1 parent afd6e33 commit d44ba35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/board.upload/R/upload_module_preview.R
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ upload_table_preview_contrasts_server <- function(
observeEvent(input$contrasts_csv, {

# if contrasts not in file name, give warning and return
if(!grepl("contrast", input$contrasts_csv$name, ignore.case = TRUE)){
if(!grepl("contrast", input$contrasts_csv$name, ignore.case = TRUE) && !grepl("comparison", input$contrasts_csv$name, ignore.case = TRUE)){
shinyalert::shinyalert(
title = "Comparison not in filename.",
text = "Please make sure the file name contains 'comparison', such as comparison_dataset.csv or comparison.csv.",
Expand Down

0 comments on commit d44ba35

Please sign in to comment.