American-Soccer-Analysis / asa-shiny-app

American Soccer Analysis interactive application, built with Shiny.
https://app.americansocceranalysis.com
21 stars 4 forks source link

Error: attempt to select less than one element in get1index #141

Open bgrnwd opened 10 months ago

bgrnwd commented 10 months ago

Error briefly flashes up on the screen when switching leagues and opening up a table (e.g., xGoals) for the very first time.

Here’s the stack trace from the app logs:

Warning: Error in [[: attempt to select less than one element in get1index
[asa-shiny-app] [2022-06-10 16:26:58]   98: get_config_element [global.R#180]
[asa-shiny-app] [2022-06-10 16:26:58]   97: tables_subheader
[asa-shiny-app] [2022-06-10 16:26:58]   96: renderUI [[//server.R#100](https://server.r/#100)]
[asa-shiny-app] [2022-06-10 16:26:58]   95: func
[asa-shiny-app] [2022-06-10 16:26:58]   82: origRenderFunc
[asa-shiny-app] [2022-06-10 16:26:58]   81: output$tables_subheader
[asa-shiny-app] [2022-06-10 16:26:58]    1: shiny::runApp