Skip to content

Commit 11638fd

Browse files
committed
explaning why we need to remove PREV_AS_OF_DATA()
1 parent 83f4cc9 commit 11638fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/server.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,10 +655,12 @@ server <- function(input, output, session) {
655655
# When the target variable changes, update available forecasters, locations, and CIs to choose from
656656
observeEvent(input$targetVariable, {
657657

658-
# removing previous asofData
658+
## summaryPlot will try to use PREV_AS_OF_DATA()
659+
## since it has wrong data information, it needs to be removed
659660
PREV_AS_OF_DATA(NULL)
660-
## Defining Filter
661661
if (input$targetVariable == "Deaths") {
662+
663+
## Defining Filter
662664
FILTER <- DEATH_FILTER
663665
} else if (input$targetVariable == "Cases") {
664666
FILTER <- CASE_FILTER

0 commit comments

Comments
 (0)