Form reset is now also resetting the attachment list

This commit is contained in:
Thorsten Sommer 2026-02-01 14:23:16 +01:00
parent 704ed3dd2c
commit 8cdad359a9
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -119,7 +119,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<NoSettingsPan
protected override Func<Task> SubmitAction => this.Analyze; protected override Func<Task> SubmitAction => this.Analyze;
protected override bool SubmitDisabled => (this.IsNoPolicySelected || this.loadedDocumentPaths.Count==0); protected override bool SubmitDisabled => this.IsNoPolicySelected || this.loadedDocumentPaths.Count == 0;
protected override ChatThread ConvertToChatThread protected override ChatThread ConvertToChatThread
{ {
@ -165,6 +165,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<NoSettingsPan
protected override void ResetForm() protected override void ResetForm()
{ {
this.loadedDocumentPaths.Clear();
if (!this.MightPreselectValues()) if (!this.MightPreselectValues())
{ {
this.policyName = string.Empty; this.policyName = string.Empty;