Fix 2 for EasyUI bug with footer refresh

This commit is contained in:
Rick Falkvinge
2019-01-29 20:42:08 +01:00
parent e89da88852
commit 243cde72bc
@@ -183,10 +183,11 @@ namespace Swarmops.Frontend.Automation
StringBuilder result = new StringBuilder(16384);
result.Append("[");
if (items.Any())
if (items.Count() > 0)
{
// Must return something in body to refresh footer - EasyUI bug
result.Append("{");
result.AppendFormat(
"\"id\":\"NoRecords\",\"name\":\"{0}\",\"description\":\"{1}\"",
JsonSanitize(Resources.Global.Global_EmptySet),