Skip to content

Commit 41c2e04

Browse files
committed
Chat messages cleared in some cases
1 parent d8183fe commit 41c2e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Radzen.Blazor/RadzenAIChat.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ protected override async Task OnParametersSetAsync()
395395
await base.OnParametersSetAsync();
396396

397397
// Update session ID if it changed
398-
if (SessionId != currentSessionId)
398+
if (!string.IsNullOrEmpty(SessionId) && SessionId != currentSessionId)
399399
{
400400
currentSessionId = SessionId ?? Guid.NewGuid().ToString();
401401
await SessionIdChanged.InvokeAsync(currentSessionId);

0 commit comments

Comments
 (0)