mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 04:27:21 +00:00
Fixed the workspace name after re-rendering the chat component (#270)
This commit is contained in:
1 parent
1681405fb9
commit
09d67bc1c2
2 files changed
+10
-1
No files matched your search
@@ -124,6 +124,13 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
|
||||
this.Logger.LogInformation($"The loading of the chat '{this.loadChat.ChatId}' was deferred and will be loaded now.");
|
||||
}
|
||||
|
||||
if (this.ChatThread is not null)
|
||||
{
|
||||
this.currentWorkspaceId = this.ChatThread.WorkspaceId;
|
||||
this.currentWorkspaceName = await WorkspaceBehaviour.LoadWorkspaceName(this.ChatThread.WorkspaceId);
|
||||
this.WorkspaceName(this.currentWorkspaceName);
|
||||
}
|
||||
|
||||
await this.SelectProviderWhenLoadingChat();
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
@@ -544,8 +551,9 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable
|
||||
{
|
||||
this.mustScrollToBottomAfterRender = true;
|
||||
this.scrollRenderCountdown = 2;
|
||||
this.StateHasChanged();
|
||||
}
|
||||
|
||||
this.StateHasChanged();
|
||||
}
|
||||
|
||||
private async Task ResetState()
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
- Fixed the hostname validation message for ERI v1 data sources.
|
||||
- Fixed a memory leak in the chat component.
|
||||
- Fixed an issue with the workspace title not being updated when a chat was moved to another workspace.
|
||||
- Fixed an issue with the chat component not loading the current workspace name when the component was refreshed.
|
||||
- Removed the "send to" button from the ERI server assistant, since it is not supported.
|
||||
Reference in new issue
Block a user