Skip to content

Commit

Permalink
Merge pull request #12 from mbarneytu/FixCsvPreviews
Browse files Browse the repository at this point in the history
Upload-preview table now shows consistently
  • Loading branch information
mbarneytu authored Mar 20, 2023
2 parents e8715e2 + 6df46f7 commit d284c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/uploader.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ uploaderServer <- function(id, selectedSite) {
})

observeEvent(csvFile(), {
shinyjs::toggle("previewDiv")
shinyjs::showElement("previewDiv")
output$preview <- renderTable({
req(csvFile)
head(csvFile()) |>
Expand Down Expand Up @@ -103,7 +103,7 @@ uploaderServer <- function(id, selectedSite) {

else {
resetUploaderUI(output)
shinyjs::toggle("previewDiv")
shinyjs::hideElement("previewDiv")
}
})
})
Expand Down

0 comments on commit d284c5a

Please sign in to comment.