fix: Template config listing is no longer reversed

pull/201/head
Robert Dailey 2 years ago
parent f6f6ea3192
commit f5386dfeda

@ -24,12 +24,12 @@ public class ConfigTemplateLister : IConfigLister
var sonarrRowItems = RenderTemplates(table, data, SupportedServices.Sonarr); var sonarrRowItems = RenderTemplates(table, data, SupportedServices.Sonarr);
var radarrRowItems = RenderTemplates(table, data, SupportedServices.Radarr); var radarrRowItems = RenderTemplates(table, data, SupportedServices.Radarr);
var items = radarrRowItems var items = sonarrRowItems
.ZipLongest(sonarrRowItems, (l, r) => (l ?? empty, r ?? empty)); .ZipLongest(radarrRowItems, (s, r) => (s ?? empty, r ?? empty));
foreach (var (r, s) in items) foreach (var (s, r) in items)
{ {
table.AddRow(r, s); table.AddRow(s, r);
} }
_console.Write(table); _console.Write(table);

Loading…
Cancel
Save