mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
Update UI will still load if no updates are available
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user