diff --git a/app/MindWork AI Studio/Pages/Information.razor b/app/MindWork AI Studio/Pages/Information.razor index 8d33571f..bc764560 100644 --- a/app/MindWork AI Studio/Pages/Information.razor +++ b/app/MindWork AI Studio/Pages/Information.razor @@ -25,12 +25,12 @@ - @foreach (var (label, value) in DatabaseDisplayInfo) + @foreach (var item in this.databaseDisplayInfo) {
- @label: @value - + @item.Label: @item.Value +
}
diff --git a/app/MindWork AI Studio/Pages/Information.razor.cs b/app/MindWork AI Studio/Pages/Information.razor.cs index ef2a64a2..aa649a3c 100644 --- a/app/MindWork AI Studio/Pages/Information.razor.cs +++ b/app/MindWork AI Studio/Pages/Information.razor.cs @@ -71,7 +71,9 @@ public partial class Information : MSGComponentBase private IPluginMetadata? configPlug = PluginFactory.AvailablePlugins.FirstOrDefault(x => x.Type is PluginType.CONFIGURATION); - private List<(string Label, string Value)> DatabaseDisplayInfo = new(); + private sealed record DatabaseDisplayInfo(string Label, string Value); + + private readonly List databaseDisplayInfo = new(); /// /// Determines whether the enterprise configuration has details that can be shown/hidden. @@ -107,9 +109,9 @@ public partial class Information : MSGComponentBase this.osLanguage = await this.RustService.ReadUserLanguage(); this.logPaths = await this.RustService.GetLogPaths(); - await foreach (var item in this.DatabaseClient.GetDisplayInfo()) + await foreach (var (label, value) in this.DatabaseClient.GetDisplayInfo()) { - this.DatabaseDisplayInfo.Add(item); + this.databaseDisplayInfo.Add(new DatabaseDisplayInfo(label, value)); } // Determine the Pandoc version may take some time, so we start it here