From 67e866b3034431042b0bde144cbd569cb897e9df Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 4 Dec 2025 19:22:14 +0100 Subject: [PATCH] Switched to IsNullOrWhiteSpace --- app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor | 2 +- app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor b/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor index 65d0cffd..b75f878f 100644 --- a/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor +++ b/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor @@ -6,7 +6,7 @@ @T("Test how we load your file. Check the content before further processing.") - @if (FilePath == string.Empty) + @if (string.IsNullOrWhiteSpace(this.FilePath)) { } diff --git a/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor.cs b/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor.cs index ebf4099b..ec03e7f3 100644 --- a/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/DocumentCheckDialog.razor.cs @@ -31,12 +31,11 @@ public partial class DocumentCheckDialog : MSGComponentBase protected override async Task OnAfterRenderAsync(bool firstRender) { - if (firstRender && !string.IsNullOrEmpty(this.FilePath)) + if (firstRender && !string.IsNullOrWhiteSpace(this.FilePath)) { var fileContent = await UserFile.LoadFileData(this.FilePath, this.RustService, this.DialogService); this.FileContent = fileContent; this.StateHasChanged(); } } - } \ No newline at end of file