]> git.sesse.net Git - ultimatescore/commitdiff
Fix a bug where showgroup() would throw an exception instead of updating.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Feb 2020 20:59:04 +0000 (21:59 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Feb 2020 20:59:04 +0000 (21:59 +0100)
carousel.js

index b4ac56e16ed2cff7a5b2140a37f7e7b495be27db..00da45cd39529ef3bd1aed7e6a4976955d331a5b 100644 (file)
@@ -629,8 +629,8 @@ function showgroup(group_name)
                let teams = parse_teams_from_spreadsheet(response);
                let games = parse_games_from_spreadsheet(response, group_name, false);
                display_group_parsed(teams, games, group_name);
+               publish_group_rank(response, group_name);  // Update the spreadsheet in the background.
        });
-       publish_group_rank(group_name);  // Update the spreadsheet in the background.
 }