fix beta header shown on compat list when there's no current beta

This commit is contained in:
Jesse Plamondon-Willard 2018-11-19 19:22:55 -05:00
parent 4cd9eda159
commit aeca48c419
No known key found for this signature in database
GPG Key ID: 7D7C8097B62033CE
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,8 @@
# Release notes
## Upcoming
* For the web UI:
* Fixed compatibility list showing beta header when there's no beta in progress.
## 2.8.2
* Fixed game crash in MacOS since SMAPI 2.8.

View File

@ -52,6 +52,8 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
// fetch game versions
string stableVersion = doc.DocumentNode.SelectSingleNode("div[@class='game-stable-version']")?.InnerText;
string betaVersion = doc.DocumentNode.SelectSingleNode("div[@class='game-beta-version']")?.InnerText;
if (betaVersion == stableVersion)
betaVersion = null;
// find mod entries
HtmlNodeCollection modNodes = doc.DocumentNode.SelectNodes("table[@id='mod-list']//tr[@class='mod']");