diff --git a/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs b/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs index 5e3cd44b..bb206e48 100644 --- a/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs +++ b/app/MindWork AI Studio/Assistants/Dynamic/AssistantDynamic.razor.cs @@ -40,12 +40,12 @@ public partial class AssistantDynamic : AssistantBaseCore private bool showFooterProfileSelection = true; private PluginAssistants? assistantPlugin; - private Dictionary inputFields = new(); - private Dictionary dropdownFields = new(); - private Dictionary switchFields = new(); - private Dictionary webContentFields = new(); - private Dictionary fileContentFields = new(); - private Dictionary colorPickerFields = new(); + private readonly Dictionary inputFields = new(); + private readonly Dictionary dropdownFields = new(); + private readonly Dictionary switchFields = new(); + private readonly Dictionary webContentFields = new(); + private readonly Dictionary fileContentFields = new(); + private readonly Dictionary colorPickerFields = new(); private readonly Dictionary imageCache = new(); private string pluginPath = string.Empty; private const string PLUGIN_SCHEME = "plugin://"; @@ -174,7 +174,6 @@ public partial class AssistantDynamic : AssistantBaseCore { entry.Value.Content = string.Empty; } - foreach (var entry in this.colorPickerFields) { this.colorPickerFields[entry.Key] = string.Empty;