mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-23 14:41:27 +00:00
Update UI will still load if no updates are available
This commit is contained in:
parent
db4eadac40
commit
8bf1d512c2
1 changed files with 13 additions and 10 deletions
|
@ -22,6 +22,8 @@ namespace NzbDrone.Api.Update
|
|||
.OrderByDescending(u => u.Version)
|
||||
.InjectTo<List<UpdateResource>>();
|
||||
|
||||
if (resources.Any())
|
||||
{
|
||||
var first = resources.First();
|
||||
first.Latest = true;
|
||||
|
||||
|
@ -36,6 +38,7 @@ namespace NzbDrone.Api.Update
|
|||
{
|
||||
installed.Installed = true;
|
||||
}
|
||||
}
|
||||
|
||||
return resources;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue