mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
fix: preserve project scope during draft hydration
This commit is contained in:
parent
a696882c0c
commit
06a5fc36b4
1 changed files with 3 additions and 0 deletions
|
|
@ -93,6 +93,9 @@ const conversationByIndex = atomFamily<TConversation | null, string | number>({
|
|||
|
||||
if (shouldUpdateParams) {
|
||||
const newParams = createChatSearchParams(newValue);
|
||||
if (newValue.chatProjectId) {
|
||||
newParams.set('projectId', newValue.chatProjectId);
|
||||
}
|
||||
const searchParams = createSearchParams(newParams);
|
||||
const url = `${window.location.pathname}?${searchParams.toString()}`;
|
||||
window.history.pushState({}, '', url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue